From 0ed6f52c8c66059702eb25b791e7b2b851a33c84 Mon Sep 17 00:00:00 2001 From: Ewowi Date: Fri, 23 Sep 2022 13:00:45 +0200 Subject: [PATCH] platformio.ini: update esp32mdevums - use https://github.com/softhack007/LITTLEFS-threadsafe.git#master - refactor esp32mdevums: add comments (to be augmented as still questions) --- platformio.ini | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/platformio.ini b/platformio.ini index 0dcd4f02..5ab191eb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -225,7 +225,9 @@ default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv lib_deps = ${env.lib_deps} - https://github.com/lorol/LITTLEFS.git + ; https://github.com/lorol/LITTLEFS.git + ; WLEDSR specific: use patched version of lorol LittleFS + https://github.com/softhack007/LITTLEFS-threadsafe.git#master makuna/NeoPixelBus @ 2.6.9 https://github.com/pbolduc/AsyncTCP.git @ 1.2.0 @@ -450,13 +452,14 @@ platform = ${esp32.platform} upload_speed = 460800 ; or 921600 platform_packages = ${esp32.platform_packages} build_unflags = ${common.build_unflags} + build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32 #-D WLED_DISABLE_BLYNK #-D WLED_DISABLE_BROWNOUT_DET -D ABL_MILLIAMPS_DEFAULT=1500 ; 850 not enough for 1024 leds -D UWLED_USE_MY_CONFIG - -D USERMOD_CUSTOMEFFECTS -D USERMOD_AUDIOREACTIVE -D UM_AUDIOREACTIVE_USE_NEW_FFT + -D USERMOD_CUSTOMEFFECTS ; -D WLED_DEBUG lib_deps = ${esp32.lib_deps} https://github.com/kosme/arduinoFFT#develop @ 1.9.2 @@ -472,30 +475,32 @@ upload_speed = 460800 ; or 921600 platform_packages = ${esp32.platform_packages} build_unflags = ${common.build_unflags} build_flags = ${common.build_flags_esp32} - -D WLED_RELEASE_NAME=ESP32 #-D WLED_DISABLE_BLYNK #-D WLED_DISABLE_BROWNOUT_DET + -D WLED_RELEASE_NAME=ESP32 ; what does this do? + #-D WLED_DISABLE_BLYNK #-D WLED_DISABLE_BROWNOUT_DET ; which settings and when? -D ABL_MILLIAMPS_DEFAULT=1500 ; 850 not enough for 1024 leds - -D WLED_MAX_USERMODS=8 - -D UWLED_USE_MY_CONFIG - -D USERMOD_CUSTOMEFFECTS + -D WLED_MAX_USERMODS=8 ; default only 4-6 + -D UWLED_USE_MY_CONFIG ; what does this do? -D USERMOD_AUDIOREACTIVE - -D UM_AUDIOREACTIVE_USE_NEW_FFT + -D UM_AUDIOREACTIVE_USE_NEW_FFT ; explain -D USERMOD_DALLASTEMPERATURE - -D USE_ALT_DISPlAY + -D USE_ALT_DISPlAY ; new versions of USERMOD_FOUR_LINE_DISPLAY and USERMOD_ROTARY_ENCODER_UI -D USERMOD_FOUR_LINE_DISPLAY -D USERMOD_ROTARY_ENCODER_UI -D USERMOD_AUTO_SAVE - -D USERMOD_WEATHER - -D USERMOD_GAMES + -D USERMOD_CUSTOMEFFECTS ; WLEDSR usermod + -D USERMOD_WEATHER ; WLEDSR usermod + -D USERMOD_GAMES ; WLEDSR usermod ; -D WLED_DEBUG lib_deps = ${esp32.lib_deps} - OneWire@~2.3.5 - olikraus/U8g2 @ ^2.28.8 - https://github.com/kosme/arduinoFFT#develop @ 1.9.2 -; monitor_filters = esp32_exception_decoder + OneWire@~2.3.5 ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_GAMES? + olikraus/U8g2 @ ^2.28.8 ; used for USERMOD_FOUR_LINE_DISPLAY + https://github.com/kosme/arduinoFFT#develop @ 1.9.2 ; used for USERMOD_AUDIOREACTIVE +; monitor_filters = esp32_exception_decoder ; used to show crash details board_build.partitions = ${esp32.default_partitions} ; board_build.partitions = tools/WLED_ESP32_16MB.csv -board_build.f_flash = 80000000L -board_build.flash_mode = dio +; board_build.partitions = tools/WLED_ESP32-wrover_4MB.csv +board_build.f_flash = 80000000L ; explain +board_build.flash_mode = dio ; explain (dio vs qio?) [env:esp8266mdev] extends = env:d1_mini