some cleanups and updates for -C3

* remove duplicate env.lib_deps
* use NeoPixelBus @ 2.7.3
* added board_build.flash_mode
This commit is contained in:
Frank
2023-04-13 19:29:41 +02:00
parent 0afad59458
commit 2e0d1046f8

View File

@@ -317,7 +317,7 @@ lib_deps =
build_flags = -g
-DARDUINO_ARCH_ESP32 -DESP32 ;; WLEDMM
-DARDUINO_ARCH_ESP32C3
-DCONFIG_IDF_TARGET_ESP32C3
-DCONFIG_IDF_TARGET_ESP32C3=1
-DCONFIG_LITTLEFS_FOR_IDF_3_2 -DLFS_THREADSAFE ;; WLEDMM
-D CONFIG_ASYNC_TCP_USE_WDT=0
-DCO
@@ -327,7 +327,7 @@ build_flags = -g
lib_deps =
${env.lib_deps}
makuna/NeoPixelBus @ 2.7.1 ;; WLEDMM - new version is more stable on -C3
makuna/NeoPixelBus @ 2.7.3 ;; WLEDMM - new version is more stable on -C3
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
[esp32s3]
@@ -845,7 +845,6 @@ lib_deps_V4_M =
paulstoffregen/OneWire@ ^2.3.7 ; used for USERMOD_DALLASTEMPERATURE -> need newer release with bugfixes for -S3; still requires TEMPERATURE_PIN < 46
olikraus/U8g2@ ^2.34.5 ; used for USERMOD_FOUR_LINE_DISPLAY -> need newer version with bugfixes for arduino-esp32 v2.0.4 (Wire inititialization)
ElectronicCats/MPU6050 @ 0.6.0 ; used for USERMOD_MPU6050_IMU
claws/BH1750 @^1.2.0 ; used for USERMOD_BH1750
build_flags_XL =
-D USERMOD_BATTERY ;; enable Battery usermod
@@ -1473,12 +1472,14 @@ monitor_filters = esp32_exception_decoder
extends = esp32_4MB_V4_S_base
;platform = ${esp32.platformV4} ;; standard IDF 4.4.1 platform
;platform_packages = ${esp32.platformV4_packages}
;board_build.flash_mode = dout
platform = ${esp32.platformV4_new} ;; alternative platform, might help in case you experience bootloops due to corrupted flash filesystem
platform_packages = ${esp32.platformV4_new_packages}
board_build.flash_mode = qio
board = esp32-c3-devkitm-1
;board_build.partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; 1.8MB firmware, 256KB filesystem (esptool erase_flash needed when changing from "standard WLED" partitions)
;board_build.partitions = tools/WLED_ESP32_2MB_noOTA.csv ;; use this for boards with 2MB flash (like some Ai-Thinker ESP32-C3-12F models)
upload_speed = 256000 ;; 921600
upload_speed = 230400 ;; 460800 ;; 256000 ;; 921600
build_unflags = ${common.build_unflags}
-D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S2 (autodetect broken?)
@@ -1487,6 +1488,7 @@ build_unflags = ${common.build_unflags}
-D USERMOD_ROTARY_ENCODER_UI ;; see above
-D WLED_ENABLE_DMX ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX)
-D WLED_ENABLE_DMX_INPUT ;; needs more testing
;-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to disable net print
build_flags = ${common.build_flags} ${esp32c3.build_flags}
; -D WLED_DISABLE_OTA ;; OTA is not possible for boards with 2MB flash only (like some Ai-Thinker ESP32-C3-12F models)
@@ -1494,6 +1496,7 @@ build_flags = ${common.build_flags} ${esp32c3.build_flags}
${common_mm.build_flags_S} ${common_mm.build_flags_M}
-Wno-misleading-indentation -Wno-format-truncation
-D WLED_RELEASE_NAME=esp32c3dev_4MB_M
; -D WLED_DISABLE_BROWNOUT_DET
; -DARDUINO_USB_CDC_ON_BOOT=1 ;; enable CDC USB -> needed for debugging over serial USB
; -D WLED_DISABLE_ADALIGHT ;; to disable serial protocols when using CDC USB (Serial RX will receive junk commands, unless its pulled down by resistor)
-DARDUINO_USB_CDC_ON_BOOT=0 ;; disable CDC USB
@@ -1508,10 +1511,13 @@ build_flags = ${common.build_flags} ${esp32c3.build_flags}
;-D IRPIN=2
;-D HW_PIN_SDA=0 -D HW_PIN_SCL=1 ;; for I2C Qwiic connector
-D SR_DMTYPE=1 -D I2S_SDPIN=5 -D I2S_WSPIN=6 -D I2S_CKPIN=4 -D MCLK_PIN=7
-D WLED_USE_MY_CONFIG
; -D WLED_USE_MY_CONFIG
lib_deps = ${env.lib_deps} ${esp32c3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M}
;lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
lib_deps = ${esp32c3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M}
lib_ignore =
;IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
OneWire ; not needed as we don't include USERMOD_DALLASTEMPERATURE
U8g2 ; not needed as we don't include USERMOD_FOUR_LINE_DISPLAY
;monitor_filters = esp32_exception_decoder
; RAM: [== ] 23.1% (used 75636 bytes from 327680 bytes)
; Flash: [==========] 96.0% (used 1510452 bytes from 1572864 bytes)
@@ -1543,7 +1549,7 @@ build_flags = ${common.build_flags} ${esp32c3.build_flags}
-D I2S_SDPIN=5 -D I2S_WSPIN=6 -D I2S_CKPIN=4 -D MCLK_PIN=7
-D WLED_USE_MY_CONFIG
;-D WLED_DEBUG -D SR_DEBUG
lib_deps = ${env.lib_deps} ${esp32c3.lib_deps} ${common_mm.lib_deps_S}
lib_deps = ${esp32c3.lib_deps} ${common_mm.lib_deps_S}
;lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
monitor_filters = esp32_exception_decoder
; RAM: [== ] 22.9% (used 75108 bytes from 327680 bytes)