From 3953473ea8860383f6c0c2053789145a3914e293 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Tue, 24 Jan 2023 19:40:00 +0300 Subject: [PATCH] Minor changes --- hardware/README.md | 2 +- platformio.ini | 31 ++++++++++++++++++++++--------- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/hardware/README.md b/hardware/README.md index c39cb6a..2ed38e7 100644 --- a/hardware/README.md +++ b/hardware/README.md @@ -1,6 +1,6 @@ # Tested on -1. MOES 1CH 10A. Built on Tuya WiFi module WA2 (WB2S) (BK7231T chip). Replacement required. Performed replacement with ESP-02S (TYWE2S). [Photo](https://github.com/aZholtikov/ESP-NOW-Switch/tree/main/hardware/MOES_1CH_10A). +1. MOES 1CH 10A. Built on Tuya WiFi module WA2 (WB2S) (BK7231T chip). Replacement required. Performed replacement with ESP-02S (analogue of TYWE2S but with 2Mb flash). [Photo](https://github.com/aZholtikov/ESP-NOW-Switch/tree/main/hardware/MOES_1CH_10A). ```text Relay GPIO GPIO04 HIGH diff --git a/platformio.ini b/platformio.ini index 40a9781..795627e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -2,33 +2,46 @@ platform = espressif8266 board = esp12e framework = arduino -lib_extra_dirs = +board_build.ldscript = eagle.flash.4m2m.ld lib_deps = https://github.com/aZholtikov/ZHNetwork https://github.com/aZholtikov/ZHConfig - bblanchon/ArduinoJson@^6.19.4 - me-no-dev/ESP Async WebServer@^1.2.3 + https://github.com/bblanchon/ArduinoJson + https://github.com/me-no-dev/ESPAsyncWebServer [env:ESP-12E-OTA] platform = espressif8266 board = esp12e framework = arduino +board_build.ldscript = eagle.flash.4m2m.ld upload_port = 192.168.4.1 upload_protocol = espota -lib_extra_dirs = lib_deps = https://github.com/aZholtikov/ZHNetwork https://github.com/aZholtikov/ZHConfig - bblanchon/ArduinoJson@^6.19.4 - me-no-dev/ESP Async WebServer@^1.2.3 + https://github.com/bblanchon/ArduinoJson + https://github.com/me-no-dev/ESPAsyncWebServer [env:ESP-02S] platform = espressif8266 board = esp8285 framework = arduino -lib_extra_dirs = +board_build.ldscript = eagle.flash.2m256.ld lib_deps = https://github.com/aZholtikov/ZHNetwork https://github.com/aZholtikov/ZHConfig - bblanchon/ArduinoJson@^6.19.4 - me-no-dev/ESP Async WebServer@^1.2.3 + https://github.com/bblanchon/ArduinoJson + https://github.com/me-no-dev/ESPAsyncWebServer + +[env:ESP-02S-OTA] +platform = espressif8266 +board = esp8285 +framework = arduino +board_build.ldscript = eagle.flash.2m256.ld +upload_port = 192.168.4.1 +upload_protocol = espota +lib_deps = + https://github.com/aZholtikov/ZHNetwork + https://github.com/aZholtikov/ZHConfig + https://github.com/bblanchon/ArduinoJson + https://github.com/me-no-dev/ESPAsyncWebServer