8467| 10
|
[求助] 【小白入门】没基础的小白请教个不是问题的问题 |
nicho 发表于 2017-4-3 11:07 int ledPin = 10; void setup() { pinMode(ledPin,OUTPUT); // put your setup code here, to run once: } void loop() { //代表s digitalWrite(ledPin,HIGH); delay(150); digitalWrite(ledPin,LOW); delay(100); digitalWrite(ledPin,HIGH); delay(150); digitalWrite(ledPin,LOW); delay(100); digitalWrite(ledPin,HIGH); delay(150); digitalWrite(ledPin,LOW); delay(100); //代表o digitalWrite(ledPin,HIGH); delay(400); digitalWrite(ledPin,LOW); delay(100); digitalWrite(ledPin,HIGH); delay(400); digitalWrite(ledPin.LOW); delay(100); digitalWrite(ledPin,HIGH); delay(400); digitalWrite(ledPin,LOW); delay(100); //代表s digitalWrite(ledPin,HIGH); delay(150); digitalWrite(ledPin,LOW); delay(100); digitalWrite(ledPin,HIGH); delay(150); digitalWrite(ledPin,LOW); delay(100); digitalWrite(ledPin.HIGH); delay(150); digitalWrite(ledPin,LOW); delay(100); } |
Forgotten 发表于 2017-4-3 19:15 Arduino:1.8.1 (Windows 7), 开发板:"Arduino/Genuino Uno" In file included from sketch\sos.ino.cpp:1:0: G:\鍗曠墖鏈篭ard\鏂囦欢\____LED\sos\sos.ino: In function 'void loop()': G:\单片机\ard\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:41:14: error: expected unqualified-id before numeric constant #define LOW 0x0 ^ G:\鍗曠墖鏈篭ard\鏂囦欢\____LED\sos\sos.ino:34:23: note: in expansion of macro 'LOW' G:\单片机\ard\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:40:14: error: expected unqualified-id before numeric constant #define HIGH 0x1 ^ G:\鍗曠墖鏈篭ard\鏂囦欢\____LED\sos\sos.ino:53:23: note: in expansion of macro 'HIGH' exit status 1 为开发板 Arduino/Genuino Uno 编译时出错。 在文件 -> 首选项开启 “编译过程中显示详细输出”选项 这份报告会包含更多信息。 |
© 2013-2025 Comsenz Inc. Powered by Discuz! X3.4 Licensed