CSJ13458669768 发表于 2015-7-3 13:10:12

求救啊....弄了几个小时了...

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);   
}
}

alai2015 发表于 2015-7-3 13:51:34

可能有中文的"空白"在loop() 裡, 重新打過~ 不要copy/paste

alai2015 发表于 2015-7-3 13:52:33

expected ';' before 'u3000irsend'
==>"irsend.sendNEC(125EC009,32);   "這一行及前一行檢查看看

CSJ13458669768 发表于 2015-7-4 09:27:03

alai2015 发表于 2015-7-3 13:51 static/image/common/back.gif
可能有中文的"空白"在loop() 裡, 重新打過~ 不要copy/paste

我看看,谢谢

liupangui 发表于 2015-7-5 07:23:49

irsend.sendNEC(125EC009,32);
16进制数不需要加0x吗
页: [1]
查看完整版本: 求救啊....弄了几个小时了...