Skip to content

Commit b4fe694

Browse files
committed
esp32 buildenv with audioreactive
To make it better readable and prevent copy&paste errors, all needed flags can be referenced from the "esp32" buildenv: ${esp32.AR_build_flags} ${esp32.AR_lib_deps}
1 parent c117785 commit b4fe694

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

platformio.ini

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# CI binaries
1313
; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth # ESP32 variant builds are temporarily excluded from CI due to toolchain issues on the GitHub Actions Linux environment
14-
default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi
14+
default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, esp32dev_audioreactive, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi
1515

1616
# Release binaries
1717
; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB
@@ -229,24 +229,22 @@ lib_deps =
229229
[esp32]
230230
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip
231231
platform = espressif32@3.5.0
232-
233232
platform_packages = framework-arduinoespressif32 @ https://github.com/Aircoookie/arduino-esp32.git#1.0.6.4
234-
235233
build_flags = -g
236234
-DARDUINO_ARCH_ESP32
237235
#-DCONFIG_LITTLEFS_FOR_IDF_3_2
238236
-D CONFIG_ASYNC_TCP_USE_WDT=0
239237
#use LITTLEFS library by lorol in ESP32 core 1.x.x instead of built-in in 2.x.x
240238
-D LOROL_LITTLEFS
241239
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
242-
243240
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
244-
245241
lib_deps =
246242
https://github.com/lorol/LITTLEFS.git
247243
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
248244
${env.lib_deps}
249-
245+
# additional build flags for audioreactive
246+
AR_build_flags = -D USERMOD_AUDIOREACTIVE -D UM_AUDIOREACTIVE_USE_NEW_FFT
247+
AR_lib_deps = https://github.com/kosme/arduinoFFT#develop @ ^1.9.2
250248

251249
[esp32_idf_V4]
252250
;; experimental build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5
@@ -404,6 +402,20 @@ lib_deps = ${esp32.lib_deps}
404402
monitor_filters = esp32_exception_decoder
405403
board_build.partitions = ${esp32.default_partitions}
406404

405+
[env:esp32dev_audioreactive]
406+
board = esp32dev
407+
platform = ${esp32.platform}
408+
platform_packages = ${esp32.platform_packages}
409+
build_unflags = ${common.build_unflags}
410+
build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32_audioreactive #-D WLED_DISABLE_BROWNOUT_DET
411+
${esp32.AR_build_flags}
412+
lib_deps = ${esp32.lib_deps}
413+
${esp32.AR_lib_deps}
414+
monitor_filters = esp32_exception_decoder
415+
board_build.partitions = ${esp32.default_partitions}
416+
; board_build.f_flash = 80000000L
417+
; board_build.flash_mode = dio
418+
407419
[env:esp32dev_qio80]
408420
board = esp32dev
409421
platform = ${esp32.platform}

0 commit comments

Comments
 (0)