From 9e4f040d4103fd3069bcab633ad89d690f2bf1b4 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:21:47 +0200 Subject: [PATCH] esp8266 build envs new: esp8266_2MB_S updated: esp8266_4MB_S --- platformio.ini | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/platformio.ini b/platformio.ini index ec9e618f..0622e9a3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -45,15 +45,16 @@ default_envs = ; esp32_4MB_S ;; experimental, optimized for speed - esp32_4MB_M ; recommended default + esp32_4MB_M ;; esp32 recommended default esp32_4MB_M_eth esp32_4MB_M_debug esp32_4MB_XL ; esp32_16MB_S ;; experimental, optimized for speed - esp32_16MB_M + esp32_16MB_M ;; esp32 recommended for boards with 16MB flash ; esp32_16MB_M_debug ; esp32_16MB_XL - esp8266_4MB_S + esp8266_2MB_S + esp8266_4MB_S ;; recommended for 8266 with audio sync esp8266_4MB_M wemos_shield_esp32_4MB_M ; wemos_shield_esp32_4MB_ICS4343x_M @@ -1231,6 +1232,27 @@ build_flags = ${esp32_4MB_M_base.build_flags} ; RAM: [== ] 24.5% (used 80348 bytes from 327680 bytes) ; Flash: [======= ] 69.4% (used 1455233 bytes from 2097152 bytes) + +[env:esp8266_2MB_S] +extends = env:esp8266_2m +upload_speed = 460800 ;115200 +board_build.f_cpu = 160000000L ;; we want 160Mhz (default = 80Mhz) +build_flags = ${common.build_flags_esp8266} + -D WLED_RELEASE_NAME=esp8266_2MB_S + -D WLED_DISABLE_ALEXA + -D WLED_DISABLE_HUESYNC + -D WLED_DISABLE_ESPNOW ;; might help in case of WiFi connectivity problems + -D WLED_DISABLE_LOXONE ; FLASH 1272 bytes + ;; -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes + ;; -D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes + ; -D WLED_DISABLE_2D + ; -UWLED_USE_MY_CONFIG + ; -D WLED_DEBUG +; monitor_filters = esp8266_exception_decoder +;; lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation +; RAM: [====== ] 60.8% (used 49836 bytes from 81920 bytes) +; Flash: [======== ] 83.3% (used 869783 bytes from 1044464 bytes) + [env:esp8266_4MB_S] extends = env:d1_mini upload_speed = 460800 ;115200 @@ -1239,13 +1261,17 @@ build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=esp8266_4MB_S -D WLED_DISABLE_ALEXA -D WLED_DISABLE_HUESYNC + -D WLED_DISABLE_ESPNOW ;; might help in case of WiFi connectivity problems + -D WLED_DISABLE_LOXONE ; FLASH 1272 bytes + ;; -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes + ;; -D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes ; -D WLED_DISABLE_2D ; -UWLED_USE_MY_CONFIG ; -D WLED_DEBUG ; monitor_filters = esp8266_exception_decoder -; RAM: [====== ] 59.3% (used 48608 bytes from 81920 bytes) -; Flash: [======== ] 77.0% (used 804176 bytes from 1044464 bytes) - +;; lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation +; RAM: [====== ] 60.8% (used 49824 bytes from 81920 bytes) +; Flash: [======== ] 83.3% (used 869779 bytes from 1044464 bytes) [env:esp8266_4MB_M] extends = env:d1_mini upload_speed = 460800 ;115200 @@ -1369,8 +1395,8 @@ lib_deps = ${esp8266.lib_deps} OneWire@~2.3.5 ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE olikraus/U8g2 @ ^2.28.8 ; used for USERMOD_FOUR_LINE_DISPLAY ElectronicCats/MPU6050 @ 0.6.0 ; used for USERMOD_MPU6050_IMU -; RAM: [====== ] 62.4% (used 51092 bytes from 81920 bytes) -; Flash: [========= ] 85.5% (used 893056 bytes from 1044464 bytes) +; RAM: [====== ] 63.8% (used 52272 bytes from 81920 bytes) +; Flash: [========= ] 90.4% (used 944487 bytes from 1044464 bytes) [env:esp01_1MB_S] board = esp01_1m