platformio编写esp-01s代码ini文件配置

解决办法

#platformio.ini文件添加这两项
board_upload.resetmethod = nodemcu
board_build.flash_mode = dout

使用的USB下载器和esp01s 如下图

板子选择esp-01s,可能会遇到没办法下载程序,或者下载成功但是不运行的问题

Failed to connect to ESP8266: Timed out waiting for packet header
解决办法参考链接: platformio-community
完整platformio.ini文件如下

[env:esp01_1m]
platform = espressif8266
board = esp01_1m
framework = arduino
monitor_speed = 115200
board_upload.resetmethod = nodemcu
board_build.flash_mode = dout
posted @ 2024-06-13 15:52  juyss  阅读(57)  评论(0编辑  收藏  举报