platformIO ESP32: IDF V4 environments
* added esp32_4MB_V4_max, esp32_16MB_V4_max * wemos D1 shields: added audio defaults for Line-In and PDM, added default I2C pins * minor cleanups
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
default_envs = esp32_4MB_max ; recommended default
|
||||
; default_envs = esp32_16MB_max
|
||||
; default_envs = esp8266_4MB_min
|
||||
; default_envs = esp32_4MB_V4_max
|
||||
; default_envs = esp32_16MB_V4_max
|
||||
; default_envs = esp32_4MB_PSRAM_max
|
||||
; default_envs = esp32S3_8MB_max
|
||||
; default_envs = wemos_shield_esp32_4MB_max
|
||||
@@ -633,8 +635,8 @@ build_flags = ${env:esp32_4MB_min_base.build_flags}
|
||||
extends = env:esp32_4MB_max_base
|
||||
build_flags = ${env:esp32_4MB_max_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_max ; This will be included in the firmware.bin filename
|
||||
; RAM: [== ] 24.4% (used 79812 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.6% (used 1393397 bytes from 1572864 bytes)
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.7% (used 1394813 bytes from 1572864 bytes)
|
||||
|
||||
; esp32_16MB_max: bin entry, uses esp32_4MB_max_base and adds 16MB settings
|
||||
[env:esp32_16MB_max]
|
||||
@@ -643,8 +645,8 @@ board = esp32_twilord ; "TwilightLord" ESP32 with 16MB Flash
|
||||
board_build.partitions = tools/WLED_ESP32_16MB.csv ; for esp32_twilord with 16MB flash
|
||||
build_flags = ${env:esp32_4MB_max_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_max ; This will be included in the firmware.bin filename
|
||||
; RAM: [== ] 24.4% (used 79812 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 66.4% (used 1393397 bytes from 2097152 bytes)
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 66.5% (used 1394813 bytes from 2097152 bytes)
|
||||
|
||||
; esp8266_4MB_min: bin entry for 8266, with 2D (WIP)
|
||||
[env:esp8266_4MB_min]
|
||||
@@ -666,12 +668,39 @@ build_flags = ${common.build_flags_esp8266}
|
||||
# ------------------------------------------------------------------------------
|
||||
# MoonModules configs for IDF V4.4.x
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
;; experiemtal environment for boards with PSRAM.
|
||||
;; Warning: the build-in LittleFS seems to be "slightly different" from Lorol LittleFS.
|
||||
;; Warning: the build-in LittleFS (arduino-esp32 2.0.x) seems to be "slightly different" from Lorol LittleFS.
|
||||
;; When upgrading to the new framework, it might be necessary to first do a chip erase (make sure you have a backup of cfg.json and presets.json)
|
||||
;; also SpiffsEditor (Async Webserver) has known problems in IDF4.4.x
|
||||
|
||||
; esp32_4MB_V4_max: bin entry compiled with ESP-IDF 4.4.1, uses esp32_4MB_V4_max_base
|
||||
[env:esp32_4MB_V4_max]
|
||||
extends = env:esp32_4MB_V4_max_base
|
||||
build_flags = ${env:esp32_4MB_V4_max_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_V4_max ; This will be included in the firmware.bin filename
|
||||
-D WLED_WATCHDOG_TIMEOUT=0 #-D WLED_DISABLE_BROWNOUT_DET
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4; avoids errors on startup
|
||||
; RAM: [== ] 24.8% (used 81316 bytes from 327680 bytes)
|
||||
; Flash: [==========] 97.2% (used 1528253 bytes from 1572864 bytes)
|
||||
-D WLED_DISABLE_LOXONE ; FLASH 1272 bytes
|
||||
-D WLED_DISABLE_ALEXA ; RAM 116 bytes; FLASH 13524 bytes
|
||||
-D WLED_DISABLE_HUESYNC ;RAM 122 bytes; FLASH 6308 bytes
|
||||
; RAM: [== ] 24.7% (used 81076 bytes from 327680 bytes)
|
||||
; Flash: [==========] 95.8% (used 1506893 bytes from 1572864 bytes)
|
||||
;-D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes
|
||||
;-D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes
|
||||
|
||||
; esp32_16MB_max: bin entry compiled with ESP-IDF 4.4.1, uses esp32_4MB_V4_max_base and adds 16MB settings
|
||||
[env:esp32_16MB_V4_max]
|
||||
extends = env:esp32_4MB_V4_max_base
|
||||
board = esp32_twilord ; "TwilightLord" ESP32 with 16MB Flash
|
||||
board_build.partitions = tools/WLED_ESP32_16MB.csv ; for esp32_twilord with 16MB flash
|
||||
build_flags = ${env:esp32_4MB_V4_max_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_V4_max ; This will be included in the firmware.bin filename
|
||||
-D WLED_WATCHDOG_TIMEOUT=0 #-D WLED_DISABLE_BROWNOUT_DET
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4; avoids errors on startup
|
||||
; RAM: [== ] 24.8% (used 81316 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 72.9% (used 1528253 bytes from 2097152 bytes)
|
||||
|
||||
;; experiemtal environment for boards with PSRAM (needs ESP-IDF 4.4.1).
|
||||
; esp32_4MB_PSRAM_max: bin entry, uses esp32_4MB_V4_max_base and adds specific settings
|
||||
[env:esp32_4MB_PSRAM_max]
|
||||
extends = env:esp32_4MB_V4_max_base
|
||||
@@ -679,7 +708,7 @@ board = lolin_d32_pro
|
||||
;board = esp32cam
|
||||
build_flags = ${env:esp32_4MB_V4_max_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_PSRAM_max
|
||||
-D WLED_WATCHDOG_TIMEOUT=0 #-D WLED_DISABLE_BLYNK #-D WLED_DISABLE_BROWNOUT_DET
|
||||
-D WLED_WATCHDOG_TIMEOUT=0 #-D WLED_DISABLE_BROWNOUT_DET
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4; avoids errors on startup
|
||||
-D WLED_USE_PSRAM
|
||||
; RAM: [== ] 24.8% (used 81424 bytes from 327680 bytes)
|
||||
@@ -690,7 +719,7 @@ build_flags = ${env:esp32_4MB_V4_max_base.build_flags}
|
||||
-D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes
|
||||
-D WLED_DISABLE_HUESYNC ;RAM 122 bytes; FLASH 6308 bytes
|
||||
; RAM: [== ] 24.7% (used 80948 bytes from 327680 bytes)
|
||||
; Flash: [==========] 97.4% (used 1531857 bytes from 1572864 bytes)
|
||||
; Flash: [==========] 97.4% (used 1532485 bytes from 1572864 bytes)
|
||||
;-D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes
|
||||
; -D WLED_DEBUG
|
||||
; -D SR_DEBUG
|
||||
@@ -716,6 +745,7 @@ build_flags = ${env:esp32_4MB_V4_max_base.build_flags}
|
||||
-D HW_PIN_SDA=40
|
||||
-D HW_PIN_SCL=41
|
||||
-D AUDIOPIN=-1
|
||||
-D DMTYPE=1
|
||||
-D I2S_SDPIN=16
|
||||
-D I2S_CKPIN=17
|
||||
-D I2S_WSPIN=47
|
||||
@@ -742,10 +772,15 @@ build_flags = ${env:esp32_4MB_max_base.build_flags}
|
||||
-D RLYPIN=19
|
||||
-D BTNPIN=17
|
||||
-D IRPIN=18
|
||||
-D AUDIOPIN=-1 -D DMTYPE=1 -D I2S_SDPIN=32 -D I2S_WSPIN=15 -D I2S_CKPIN=14
|
||||
-D AUDIOPIN=-1
|
||||
-D DMTYPE=1 -D I2S_SDPIN=32 -D I2S_WSPIN=15 -D I2S_CKPIN=14 ;; for regular I2S microphone
|
||||
; -D DMTYPE=5 -D I2S_SDPIN=32 -D I2S_WSPIN=15 -D I2S_CKPIN=-1 ;; for I2S PDM microphone
|
||||
; -D DMTYPE=4 -D MCLK_PIN=0 -D I2S_SDPIN=25 -D I2S_WSPIN=15 -D I2S_CKPIN=14 ;; for audio Line-In shield
|
||||
-D TEMPERATURE_PIN=23
|
||||
-D FLD_PIN_SCL=22 -D FLD_PIN_SDA=21
|
||||
-D HW_PIN_SCL=22 -D HW_PIN_SDA=21
|
||||
; -D ENCODER_DT_PIN=18 -D ENCODER_CLK_PIN=5 -D ENCODER_SW_PIN=19
|
||||
; -D WLED_USE_MY_CONFIG
|
||||
|
||||
;wemos_shield_esp32_4MB_max: bin entry, uses wemos_shield_esp32_4MB_max_base
|
||||
[env:wemos_shield_esp32_4MB_max]
|
||||
@@ -771,10 +806,8 @@ build_flags = ${env:esp32_4MB_max_base.build_flags}
|
||||
-D RLYPIN=-1
|
||||
-D BTNPIN=-1
|
||||
-D IRPIN=-1
|
||||
-D DMTYPE=1
|
||||
-D I2S_SDPIN=25
|
||||
-D I2S_WSPIN=15
|
||||
-D I2S_CKPIN=14
|
||||
-D HW_PIN_SCL=22 -D HW_PIN_SDA=21
|
||||
-D DMTYPE=1 -D I2S_SDPIN=25 -D I2S_WSPIN=15 -D I2S_CKPIN=14
|
||||
; -D MCLK_PIN=0
|
||||
; -D WLED_USE_MY_CONFIG
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
|
||||
Reference in New Issue
Block a user