用户:
麦芒Wheat查看:3 回复:1 评论:3 创建时间:2021-01-30T19:00:10
void setup(){
int button;
pinMode(13,INPUT);
Serial.begin (9600);
}
void loop(){
button=digtalRead(13);//就这行给我报错了
if(digtalRead(13)=LOW and button_last=HIGH){
Serial.println("Hello");
}
delay (1);
主板:ARDUINO UNO
IDE:ARDUINO IDE MicrosoftStore版
其他的没啥了
报错信息如下:
exit status 1
'button' was not declared in this scope