이 명령어를 입력했는데
#include
int sensorPin = 0;// 사운드 센서를 0번핀에 연결합니다.
void setup() {
Serial.begin(9600); //시리얼 통신을 시작합니다.
Keyboard.begin();
}
void loop() {
int value = analogRead(sensorPin); // 사운드 센서로부터 센서값을 읽어 들입니다.
if(value > 0)
{
Keyboard.write(102);
Keyboard.write(100);
//f = 102
//d = 100
//q = 113
//즐겁게 친구 괴롭히세요
}
delay(10);//10ms 동안 대기
Serial.println(value);//센서값을 시리얼 모니터로 출력하여 현재 센서값을 보여줍니다.
delay(100);//100ms 동안 대기
}
이런에러가나요
In file included from C:\Users\minec\Documents\Arduino\sketch_jan20a\sketch_jan20a.ino:1:0:
C:\Program Files (x86)\Arduino\libraries\Keyboard\src/Keyboard.h:29:2: warning: #warning "Using legacy HID core (non pluggable)" [-Wcpp]
#warning "Using legacy HID core (non pluggable)"
^
sketch_jan20a:24: error: stray '\357' in program
}癤?
^
sketch_jan20a:24: error: stray '\273' in program
sketch_jan20a:24: error: stray '\277' in program
C:\Users\minec\Documents\Arduino\sketch_jan20a\sketch_jan20a.ino: In function 'void setup()':
sketch_jan20a:7: error: 'Keyboard' 가 없습니다. 스케치에서 '#include
Keyboard.begin();
^
C:\Users\minec\Documents\Arduino\sketch_jan20a\sketch_jan20a.ino: In function 'void loop()':
sketch_jan20a:14: error: 'Keyboard' 가 없습니다. 스케치에서 '#include
Keyboard.write(100);
^
exit status 1
stray '\357' in program
임성도 2016-09-18 11:33:24
좋은 정보 정말 감사합니다.