|
|
Arduino:1.6.5 (Windows 7), 板:"Arduino Uno"
构建选项已变更,全部重新构建
launch:13: error: stray '\' in program
launch:13: error: stray '\' in program
launch:13: error: exponent has no digits
launch.ino: In function 'void loop()':
launch:13: error: 'u3000' was not declared in this scope
launch:13: error: expected ';' before 'u3000irsend'
stray '\' in program
报告将会包含更多的信息
"在编译时,输出详细信息"
在 文件>首选项 中启用
代码:
#include <IRremote.h>
const int buttonPin = 7;
int buttonState = 0;
IRsend irsend;
void setup()
{
pinMode(buttonPin, INPUT);
}
void loop()
{
buttonState = digitalRead(buttonPin);
if(buttonState == LOW) {
irsend.sendNEC(125EC009,32);
}
} |
|