问题描述
我正在尝试在 ESP8266 WEMOS D1 Mini Pro 上运行基本的闪烁草图。但我收到以下错误:
esptool 致命错误。无效的包头 (0x72)
我尝试了几条新的 USB 电缆,按下设备上的其余按钮,但都失败或出现超时错误。
ESP8266 Blink by Simon Peter
使 ESP-01 模块上的蓝色 LED 闪烁
此示例代码位于公共领域
ESP-01 模块上的蓝色 LED 连接到 GPIO1(也是 TXD 引脚;因此我们不能同时使用 Serial.print())
请注意,此草图使用 LED_BUILTIN 查找带有内部 LED 的引脚
这是我的代码:
void setup() {
pinMode(LED_BUILTIN,OUTPUT); // Initialize the LED_BUILTIN pin as an output
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN,LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is active low on the ESP-01)
delay(1000); // Wait for a second
digitalWrite(LED_BUILTIN,HIGH); // Turn the LED off by making the voltage HIGH
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}
Arduino 版本为 1.8.14
主板为:LOLIN(WEMOS) D1 Mini Pro
有什么建议吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)