Skip to content

Commit 472c261

Browse files
authored
Update platformio.ini
1 parent fd4d75f commit 472c261

File tree

1 file changed

+19
-57
lines changed

1 file changed

+19
-57
lines changed

platformio.ini

Lines changed: 19 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# ------------------------------------------------------------------------------
1111

1212
# CI/release binaries
13-
default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, nodemcuv2_160, esp8266_2m_160, esp01_1m_full_160, nodemcuv2_compat, esp8266_2m_compat, esp01_1m_full_compat, esp32dev, esp32dev_V4, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_16MB_opi, esp32s3dev_8MB_opi, esp32s3_4M_qspi, esp32_wrover, usermods
13+
default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, nodemcuv2_160, esp8266_2m_160, esp01_1m_full_160, nodemcuv2_compat, esp8266_2m_compat, esp01_1m_full_compat, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_16MB_opi, esp32s3dev_8MB_opi, esp32s3_4M_qspi, esp32_wrover, usermods
1414

1515
src_dir = ./wled00
1616
data_dir = ./wled00/data
@@ -142,7 +142,7 @@ lib_deps =
142142
IRremoteESP8266 @ 2.8.2
143143
makuna/NeoPixelBus @ 2.8.3
144144
#https://github.com/makuna/NeoPixelBus.git#CoreShaderBeta
145-
https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.4.0
145+
https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.4.2
146146
# for I2C interface
147147
;Wire
148148
# ESP-NOW library
@@ -234,45 +234,36 @@ lib_deps_compat =
234234

235235
[esp32_all_variants]
236236
lib_deps =
237-
willmmiles/AsyncTCP @ 1.3.1
237+
esp32async/AsyncTCP @ 3.4.7
238238
bitbank2/AnimatedGIF@^1.4.7
239239
https://github.com/Aircoookie/GifDecoder#bc3af18
240240
build_flags =
241241
-D CONFIG_ASYNC_TCP_USE_WDT=0
242+
-D CONFIG_ASYNC_TCP_STACK_SIZE=8192
242243
-D WLED_ENABLE_GIF
243244

244245
[esp32]
245-
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip
246-
247-
platform_packages = framework-arduinoespressif32 @ https://github.com/Aircoookie/arduino-esp32.git#1.0.6.4
246+
platform = ${esp32_idf_V4.platform}
247+
platform_packages =
248248
build_unflags = ${common.build_unflags}
249-
build_flags = -g
250-
-DARDUINO_ARCH_ESP32
251-
#-DCONFIG_LITTLEFS_FOR_IDF_3_2
252-
#use LITTLEFS library by lorol in ESP32 core 1.x.x instead of built-in in 2.x.x
253-
-D LOROL_LITTLEFS
254-
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
255-
${esp32_all_variants.build_flags}
249+
build_flags = ${esp32_idf_V4.build_flags}
250+
lib_deps = ${esp32_idf_V4.lib_deps}
256251

257252
tiny_partitions = tools/WLED_ESP32_2MB_noOTA.csv
258253
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
259254
extended_partitions = tools/WLED_ESP32_4MB_700k_FS.csv
260255
big_partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; 1.8MB firmware, 256KB filesystem, coredump support
261256
large_partitions = tools/WLED_ESP32_8MB.csv
262257
extreme_partitions = tools/WLED_ESP32_16MB_9MB_FS.csv
263-
lib_deps =
264-
https://github.com/lorol/LITTLEFS.git
265-
${esp32_all_variants.lib_deps}
266-
${env.lib_deps}
258+
267259
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
268260
# additional build flags for audioreactive - must be applied globally
269261
AR_build_flags = ;; -fsingle-precision-constant ;; forces ArduinoFFT to use float math (2x faster)
270262
AR_lib_deps = ;; for pre-usermod-library platformio_override compatibility
271263

272264

273265
[esp32_idf_V4]
274-
;; experimental build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5
275-
;; very similar to the normal ESP32 flags, but omitting Lorol LittleFS, as littlefs is included in the new framework already.
266+
;; build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5
276267
;;
277268
;; please note that you can NOT update existing ESP32 installs with a "V4" build. Also updating by OTA will not work properly.
278269
;; You need to completely erase your device (esptool erase_flash) first, then install the "V4" build from VSCode+platformio.
@@ -283,14 +274,12 @@ build_unflags = ${common.build_unflags}
283274
build_flags = -g
284275
-Wshadow=compatible-local ;; emit warning in case a local variable "shadows" another local one
285276
-DARDUINO_ARCH_ESP32 -DESP32
286-
-DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
287277
${esp32_all_variants.build_flags}
288278
-D WLED_ENABLE_DMX_INPUT
289279
lib_deps =
290280
${esp32_all_variants.lib_deps}
291281
https://github.com/someweisguy/esp_dmx.git#47db25d
292282
${env.lib_deps}
293-
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
294283

295284
[esp32s2]
296285
;; generic definitions for all ESP32-S2 boards
@@ -305,10 +294,9 @@ build_flags = -g
305294
-DARDUINO_USB_MODE=0 ;; this flag is mandatory for ESP32-S2 !
306295
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
307296
;; ARDUINO_USB_CDC_ON_BOOT
308-
${esp32_all_variants.build_flags}
297+
${esp32_idf_V4.build_flags}
309298
lib_deps =
310-
${esp32_all_variants.lib_deps}
311-
${env.lib_deps}
299+
${esp32_idf_V4.lib_deps}
312300
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
313301

314302
[esp32c3]
@@ -323,10 +311,9 @@ build_flags = -g
323311
-DARDUINO_USB_MODE=1 ;; this flag is mandatory for ESP32-C3
324312
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
325313
;; ARDUINO_USB_CDC_ON_BOOT
326-
${esp32_all_variants.build_flags}
314+
${esp32_idf_V4.build_flags}
327315
lib_deps =
328-
${esp32_all_variants.lib_deps}
329-
${env.lib_deps}
316+
${esp32_idf_V4.lib_deps}
330317
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
331318
board_build.flash_mode = qio
332319

@@ -343,10 +330,9 @@ build_flags = -g
343330
-DCO
344331
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
345332
;; ARDUINO_USB_MODE, ARDUINO_USB_CDC_ON_BOOT
346-
${esp32_all_variants.build_flags}
333+
${esp32_idf_V4.build_flags}
347334
lib_deps =
348-
${esp32_all_variants.lib_deps}
349-
${env.lib_deps}
335+
${esp32_idf_V4.lib_deps}
350336
board_build.partitions = ${esp32.large_partitions} ;; default partioning for 8MB flash - can be overridden in build envs
351337

352338

@@ -441,21 +427,11 @@ custom_usermods = audioreactive
441427

442428
[env:esp32dev]
443429
board = esp32dev
444-
platform = ${esp32.platform}
445-
platform_packages = ${esp32.platform_packages}
446-
custom_usermods = audioreactive Internal_Temperature animartrix TetrisAI_v2
447-
build_unflags = ${common.build_unflags}
448-
build_flags = ${common.build_flags} ${esp32.build_flags} -D WLED_RELEASE_NAME=\"ESP32\" #-D WLED_DISABLE_BROWNOUT_DET
449-
lib_deps = ${esp32.lib_deps}
450-
monitor_filters = esp32_exception_decoder
451-
board_build.partitions = ${esp32.default_partitions}
452-
453-
[env:esp32dev_V4]
454-
board = esp32dev
455430
platform = ${esp32_idf_V4.platform}
456431
build_unflags = ${common.build_unflags}
457432
custom_usermods = audioreactive
458433
build_flags = ${common.build_flags} ${esp32_idf_V4.build_flags} -D WLED_RELEASE_NAME=\"ESP32_V4\" #-D WLED_DISABLE_BROWNOUT_DET
434+
-DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
459435
lib_deps = ${esp32_idf_V4.lib_deps}
460436
monitor_filters = esp32_exception_decoder
461437
board_build.partitions = ${esp32.default_partitions}
@@ -489,34 +465,20 @@ board_upload.maximum_size = 16777216
489465
board_build.f_flash = 80000000L
490466
board_build.flash_mode = dio
491467

492-
;[env:esp32dev_audioreactive]
493-
;board = esp32dev
494-
;platform = ${esp32.platform}
495-
;platform_packages = ${esp32.platform_packages}
496-
;custom_usermods = audioreactive
497-
;build_unflags = ${common.build_unflags}
498-
;build_flags = ${common.build_flags} ${esp32.build_flags} -D WLED_RELEASE_NAME=\"ESP32_audioreactive\" #-D WLED_DISABLE_BROWNOUT_DET
499-
;lib_deps = ${esp32.lib_deps}
500-
;monitor_filters = esp32_exception_decoder
501-
;board_build.partitions = ${esp32.default_partitions}
502-
;; board_build.f_flash = 80000000L
503-
;; board_build.flash_mode = dio
504-
505468
[env:esp32_eth]
506469
board = esp32-poe
507-
platform = ${esp32.platform}
508-
platform_packages = ${esp32.platform_packages}
470+
platform = ${esp32_idf_V4.platform}
509471
upload_speed = 921600
510472
custom_usermods = audioreactive
511473
build_unflags = ${common.build_unflags}
512474
build_flags = ${common.build_flags} ${esp32.build_flags} -D WLED_RELEASE_NAME=\"ESP32_Ethernet\" -D RLYPIN=-1 -D WLED_USE_ETHERNET -D BTNPIN=-1
513475
; -D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only
514476
lib_deps = ${esp32.lib_deps}
515477
board_build.partitions = ${esp32.default_partitions}
478+
board_build.flash_mode = dio
516479

517480
[env:esp32_wrover]
518481
extends = esp32_idf_V4
519-
platform = ${esp32_idf_V4.platform}
520482
board = ttgo-t7-v14-mini32
521483
board_build.f_flash = 80000000L
522484
board_build.flash_mode = qio

0 commit comments

Comments
 (0)