Skip to content

Commit

Permalink
Platformio.ini: build_flags_S: minimal + fastpath, add wemos_shield_S
Browse files Browse the repository at this point in the history
build_flags_S
- add WLEDMM_FASTPATH
- uncomment disable directives
- not enable DMX
- add disable adalight and espnow

Add wemos_shield_esp32_4MB_S_base, wemos_shield_esp32_4MB_S and wemos_shield_esp32_16MB_S
  • Loading branch information
ewowi committed Nov 23, 2023
1 parent 587e676 commit c584126
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -916,14 +916,15 @@ build_flags_S =
-D USERMOD_AUDIOREACTIVE
-D UM_AUDIOREACTIVE_USE_NEW_FFT ; use latest (upstream) FFTLib, instead of older library modified by blazoncek. Slightly faster, more accurate, needs 2KB RAM extra
; -D USERMOD_ARTIFX ;; WLEDMM usermod - temporarily moved into "_M", due to problems in "_S" when compiling with -O2
; -D WLEDMM_FASTPATH ;; WLEDMM experimental option. Reduces audio lag (latency), and allows for faster LED framerates. May break compatibility with previous versions.
-D WLEDMM_FASTPATH ;; WLEDMM experimental option. Reduces audio lag (latency), and allows for faster LED framerates. May break compatibility with previous versions.
; -D WLED_DEBUG_HEAP ;; WLEDMM enable heap debugging
; -D WLED_DISABLE_LOXONE
; -D WLED_DISABLE_ALEXA
; -D WLED_DISABLE_HUESYNC
; -D WLED_DISABLE_MQTT
; -D WLED_DISABLE_INFRARED
; -D WLED_ENABLE_DMX
-D WLED_DISABLE_LOXONE
-D WLED_DISABLE_ALEXA
-D WLED_DISABLE_HUESYNC
-D WLED_DISABLE_MQTT
-D WLED_DISABLE_INFRARED
-D WLED_DISABLE_ADALIGHT ;; WLEDMM this board does not have a serial-to-USB chip. Better to disable serial protocols, to avoid crashes (see upstream #3128)
-D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only

lib_deps_S =
;; https://github.com/kosme/arduinoFFT#develop @ 1.9.2+sha.419d7b0 ;; used for USERMOD_AUDIOREACTIVE - using "known working" hash
Expand Down Expand Up @@ -1956,9 +1957,9 @@ monitor_filters = esp32_exception_decoder
# custom board environments
# ------------------------------------------------------------------------------

[wemos_shield_esp32_4MB_M_base]
extends = esp32_4MB_M_base
build_flags = ${esp32_4MB_M_base.build_flags}
[wemos_shield_esp32_4MB_S_base]
extends = esp32_4MB_S_base
build_flags = ${esp32_4MB_S_base.build_flags}
-D ABL_MILLIAMPS_DEFAULT=9500 ; Wemos max 10A
-D LEDPIN=16
-D RLYPIN=19
Expand All @@ -1974,11 +1975,21 @@ build_flags = ${esp32_4MB_M_base.build_flags}
-D PWM_PIN=-1
; -D WLED_USE_MY_CONFIG

[wemos_shield_esp32_4MB_M_base]
extends = wemos_shield_esp32_4MB_S_base
build_flags = ${wemos_shield_esp32_4MB_S_base.build_flags} ${common_mm.build_flags_M}
lib_deps = ${wemos_shield_esp32_4MB_S_base.lib_deps} ${common_mm.lib_deps_M}

[wemos_shield_esp32_4MB_XL_base]
extends = wemos_shield_esp32_4MB_M_base
build_flags = ${wemos_shield_esp32_4MB_M_base.build_flags} ${common_mm.build_flags_XL}
lib_deps = ${wemos_shield_esp32_4MB_M_base.lib_deps} ${common_mm.lib_deps_XL}

[env:wemos_shield_esp32_4MB_S]
extends = wemos_shield_esp32_4MB_S_base
build_flags = ${wemos_shield_esp32_4MB_S_base.build_flags}
-D WLED_RELEASE_NAME=wemos_shield_esp32_4MB_S

[env:wemos_shield_esp32_4MB_M]
extends = wemos_shield_esp32_4MB_M_base
build_flags = ${wemos_shield_esp32_4MB_M_base.build_flags}
Expand Down Expand Up @@ -2006,6 +2017,13 @@ build_unflags = ${common.build_unflags} ${Shield_LineIn.build_unflags}
build_flags = ${wemos_shield_esp32_4MB_M_base.build_flags} ${Shield_LineIn.build_flags}
-D WLED_RELEASE_NAME=wemos_shield_esp32_4MB_LineIn_M

[env:wemos_shield_esp32_16MB_S]
extends = wemos_shield_esp32_4MB_S_base
build_flags = ${wemos_shield_esp32_4MB_S_base.build_flags}
-D WLED_RELEASE_NAME=wemos_shield_esp32_16MB_S
board = esp32_16MB
board_build.partitions = tools/WLED_ESP32_16MB.csv ;; WLED standard for 16MB flash: 2MB firmware, 12 MB filesystem

[env:wemos_shield_esp32_16MB_M]
extends = wemos_shield_esp32_4MB_M_base
build_flags = ${wemos_shield_esp32_4MB_M_base.build_flags}
Expand Down

0 comments on commit c584126

Please sign in to comment.