Skip to content

Commit e8523d0

Browse files
committed
Default to V4
1 parent 4df16b4 commit e8523d0

1 file changed

Lines changed: 5 additions & 31 deletions

File tree

platformio.ini

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,7 @@ extra_configs =
126126
# arduino core 2.6.3 = platformIO 2.3.2
127127
# arduino core 2.7.0 = platformIO 2.5.0
128128
# ------------------------------------------------------------------------------
129-
arduino_core_2_6_3 = espressif8266@2.3.3
130-
arduino_core_2_7_4 = espressif8266@2.6.2
131-
arduino_core_3_0_0 = espressif8266@3.0.0
132129
arduino_core_3_2_0 = espressif8266@3.2.0
133-
arduino_core_4_1_0 = espressif8266@4.1.0
134130
arduino_core_3_1_2 = espressif8266@4.2.1
135131

136132
# Development platforms
@@ -212,7 +208,7 @@ build_flags =
212208
build_unflags =
213209

214210
build_flags_esp8266 = ${common.build_flags} ${esp8266.build_flags}
215-
build_flags_esp32 = ${common.build_flags} ${esp32.build_flags}
211+
build_flags_esp32 = ${common.build_flags} ${esp32_idf_V4.build_flags}
216212
build_flags_esp32_V4= ${common.build_flags} ${esp32_idf_V4.build_flags}
217213

218214
ldscript_1m128k = eagle.flash.1m128.ld
@@ -342,21 +338,9 @@ lib_deps_compat =
342338

343339

344340
[esp32]
345-
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip
346-
platform = espressif32@3.5.0
347-
348-
platform_packages = framework-arduinoespressif32 @ https://github.com/Aircoookie/arduino-esp32.git#1.0.6.4
349-
350-
build_flags = -g
351-
-DARDUINO_ARCH_ESP32
352-
#-DCONFIG_LITTLEFS_FOR_IDF_3_2
353-
-D CONFIG_ASYNC_TCP_USE_WDT=0
354-
-D CONFIG_ASYNC_TCP_TASK_STACK_SIZE=9472 ;; WLEDMM increase stack by 1.25Kb, as audioreactive needs bigger SETTINGS_STACK_BUF_SIZE
355-
#use LITTLEFS library by lorol in ESP32 core 1.x.x instead of built-in in 2.x.x
356-
-D LOROL_LITTLEFS
357-
; -D WLEDMM_TWOPATH ;; use I2S1 as the second bus --> ~15% faster on "V3" builds - may flicker a bit more
358-
; -D WLEDMM_SLOWPATH ;; don't use I2S for LED bus
359-
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
341+
platform = ${esp32_idf_V4.platform}
342+
platform_packages = ${esp32_idf_V4.platform_packages}
343+
build_flags = ${esp32_idf_V4.build_flags}
360344

361345
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv ;; WLED standard for 4MB flash: 1.4MB firmware, 1MB filesystem
362346
;default_partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; WLEDMM alternative for 4MB flash: 1.8MB firmware, 256KB filesystem (esptool erase_flash needed before changing)
@@ -367,14 +351,7 @@ big_partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; 1.8MB firmware, 256KB
367351
large_partitions = tools/WLED_ESP32_8MB.csv
368352
extreme_partitions = tools/WLED_ESP32_16MB_9MB_FS.csv
369353

370-
lib_deps =
371-
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0 ;; WLEDMM this must be first in the list, otherwise Aircoookie/ESPAsyncWebServer pulls in an older version of AsyncTCP !!
372-
; https://github.com/lorol/LITTLEFS.git
373-
; WLEDMM specific: use patched version of lorol LittleFS
374-
https://github.com/softhack007/LITTLEFS-threadsafe.git#master
375-
makuna/NeoPixelBus @ 2.7.5
376-
;; makuna/NeoPixelBus @ 2.7.9 ;; experimental
377-
${env.lib_deps}
354+
lib_deps = ${esp32_idf_V4.lib_deps}
378355

379356
;; Compatibility with upstream --> you should prefer using ${common_mm.build_flags_S} and ${common_mm.lib_deps_S}
380357
AR_build_flags = ${common_mm.AR_build_flags}
@@ -417,9 +394,6 @@ lib_depsV4 =
417394
;; WLEDMM end
418395

419396
[esp32_idf_V4]
420-
;; experimental build environment for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5
421-
;; very similar to the normal ESP32 flags, but omitting Lorol LittleFS, as littlefs is included in the new framework already.
422-
;;
423397
;; please note that you can NOT update existing ESP32 installs with a "V4" build. Also updating by OTA will not work properly.
424398
;; You need to completely erase your device (esptool erase_flash) first, then install the "V4" build from VSCode+platformio.
425399

0 commit comments

Comments
 (0)