Skip to content

Commit 472faa6

Browse files
committed
Swap to new larger filesystem but create esp32_4MB_V4_Minimal that still uses the legacy filesysem to allow OTA updates
1 parent 4df16b4 commit 472faa6

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

platformio.ini

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ default_envs =
7070
; wemos_shield_esp32_16MB_SPM1423_XL
7171
; wemos_shield_esp32_16MB_LineIn_M
7272
;;
73+
esp32_4MB_V4_Minimal
7374
esp32_4MB_V4_S ;; experimental; HUB75 supported
7475
esp32_4MB_V4_HUB75_forum ;; experimental; HUB75 supported (forum pinout)
7576
esp32_16MB_V4_S ;; experimental - optimized for speed; HUB75 supported
@@ -358,8 +359,8 @@ build_flags = -g
358359
; -D WLEDMM_SLOWPATH ;; don't use I2S for LED bus
359360
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
360361

361-
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv ;; WLED standard for 4MB flash: 1.4MB firmware, 1MB filesystem
362-
;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)
362+
; default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv ;; WLED standard for 4MB flash: 1.4MB firmware, 1MB filesystem
363+
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)
363364

364365
tiny_partitions = tools/WLED_ESP32_2MB_noOTA.csv
365366
extended_partitions = tools/WLED_ESP32_4MB_700k_FS.csv
@@ -1649,6 +1650,19 @@ lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compila
16491650
; RAM: [=== ] 25.5% (used 83400 bytes from 327680 bytes)
16501651
; Flash: [==========] 97.3% (used 1530013 bytes from 1572864 bytes)
16511652

1653+
[env:esp32_4MB_V4_Minimal]
1654+
extends = env:esp32_4MB_V4_S
1655+
board_build.partitions = tools/WLED_ESP32_4MB_1MB_FS.csv ;; WLED-AC compatibility
1656+
lib_deps = ${esp32_4MB_V4_S_base.esp32_lib_deps}
1657+
lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
1658+
${common_mm.HUB75_lib_ignore} ;; over the flash size limit
1659+
${common_mm.animartrix_lib_ignore}
1660+
build_unflags = ${esp32_4MB_V4_S_base.build_unflags}
1661+
-D USERMOD_ANIMARTRIX ;; Tips our memory usage over the limit
1662+
-D USERMOD_ARTIFX
1663+
-D USERMOD_AUTO_SAVE
1664+
-D WLED_ENABLE_HUB75MATRIX
1665+
16521666
;; softhack007: my favourite HUB75 buildenv - fastest possible
16531667
[env:esp32_4MB_V4_HUB75_forum]
16541668
extends = esp32_4MB_V4_S_base

0 commit comments

Comments
 (0)