아두이노 IDE로 소스코드를 작성하였는데 어느 부분이 잘못되었는지 모르겠어요..
소스 코드는 아래처럼 작성하였고,
#include <Wire.h>
#include <LCD03.h>
LCD03 lcd;
void setup() {
pinMode(8, INPUT);
pinMode(9, INPUT);
pinMode(10, INPUT);
lcd.begin(0,0);
}
void loop() {
int button = digitalRead(10);
if(button == HIGH){
delay(1000);
int melody[11] = {262, 330, 392, 523, 392, 330, 260};
tone(11, melody[11], 250);
delay(400);
noTone(11);
}
int solved = 0;
int unsolved = 0;
int red = digitalRead(9);
int blue = digitalRead(8);
if(red == HIGH){
unsolved = unsolved + 1;
}
if(blue == HIGH){
unsolved = unsolved + 1;
solved = solved + 1;
}
lcd.setCursor(0,0);
lcd.print("solved:");
lcd.setCursor(7,0);
lcd.print(solved);
lcd.setCursor(0,1);
lcd.print("unsolved:");
lcd.setCursor(9,1);
lcd.print(unsolved);
}
오류메시지는
cc1.exe: fatal error: can't open 'C:\Users\xbf\xec\xb8\xae\xc1\xfd\AppData\Local\Temp\ccTnte4A.s' for writing: Permission denied
compilation terminated.
exit status 1
보드 Arduino Uno 컴파일 에러.
라고 나오는데 어느 부분이 잘못된지 좀 알려주세요..
|