void loop(){
//check and see if a data packet has come in.
if(ET.receiveData()){
//this is how you access the variables. [name of the group].[variable name]
//since we have data, we will blink it out.
for(int i = mydata.blinks; i>0; i--){
digitalWrite(13, HIGH);
delay(mydata.pause * 100);
digitalWrite(13, LOW);
delay(mydata.pause * 100);
}
}
delay(2500);
} 这是代码
Arduino:1.5.6-r2 (Windows XP), 板:"Arduino Uno"
sketch_apr26a.ino: In function 'void loop()':
sketch_apr26a:3: error: 'ET' was not declared in this scope
sketch_apr26a:6: error: 'mydata' was not declared in this scope
报告将会包含更多的信息
"Show verbose output during compilation"
在 文件>首选项 中启用
错误信息 |