|
|
@@ -25,22 +25,6 @@ void loop() { |
|
|
|
ArduinoOTA.handle(); |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|
___ |
|
|
|
|
|
|
|
__modify__ _platformio.ini_ |
|
|
|
|
|
|
|
```ini |
|
|
|
; example platformio.ini |
|
|
|
[env:esp01_1m] |
|
|
|
platform = espressif8266 |
|
|
|
board = esp01_1m |
|
|
|
framework = arduino |
|
|
|
|
|
|
|
upload_port = COM6 |
|
|
|
monitor_speed = 74880 |
|
|
|
``` |
|
|
|
|
|
|
|
___ |
|
|
|
|
|
|
|
__open serial port to esp8266 and reset__ |
|
|
@@ -90,6 +74,21 @@ __note:__ __y__ represents the position of the boot file |
|
|
|
|
|
|
|
___ |
|
|
|
|
|
|
|
__modify__ _platformio.ini_ |
|
|
|
|
|
|
|
```ini |
|
|
|
; example platformio.ini |
|
|
|
[env:esp01_1m] |
|
|
|
platform = espressif8266 |
|
|
|
board = esp01_1m |
|
|
|
framework = arduino |
|
|
|
|
|
|
|
upload_port = COM6 |
|
|
|
monitor_speed = 74880 |
|
|
|
``` |
|
|
|
|
|
|
|
___ |
|
|
|
|
|
|
|
__upload compiled binary via uart__ |
|
|
|
|
|
|
|
__note__: close serial port |