Merge pull request #263 from MoonModules/copilot/fix-255 (fixes #255)

Implement conditional ARDUINO_USB_MODE: dev=1, release=removed for USB-OTG boards with production warnings
This commit is contained in:
Frank
2025-11-16 01:25:59 +01:00
committed by GitHub
3 changed files with 128 additions and 2 deletions

View File

@@ -220,6 +220,7 @@ ldscript_16m14m = eagle.flash.16m14m.ld
extra_scripts =
pre:pio-scripts/set_version.py
pre:pio-scripts/build-html.py
pre:pio-scripts/conditional_usb_mode.py
post:pio-scripts/output_bins.py
post:pio-scripts/strip-floats.py
pre:pio-scripts/user_config_copy.py
@@ -2506,11 +2507,12 @@ upload_speed = 460800
build_unflags = ${env:esp32c3dev_4MB_M.build_unflags}
-DWLEDMM_FASTPATH ;; needs more testing on -C3
-D WLED_ENABLE_HUB75MATRIX ;; not enough pins
-DARDUINO_USB_CDC_ON_BOOT=1 ;; hangs on boot
build_flags = ${common.build_flags} ${esp32c3.build_flags}
-D WLED_WATCHDOG_TIMEOUT=0 -D CONFIG_ASYNC_TCP_USE_WDT=0
${common_mm.build_flags_S} -Wno-misleading-indentation -Wno-format-truncation
-D WLED_RELEASE_NAME=seeed_esp32c3_4MB_S
-DARDUINO_USB_CDC_ON_BOOT=1 ;; enable CDC USB -> needed for debugging over serial USB
-DARDUINO_USB_CDC_ON_BOOT=0 ;; disable CDC USB, as the older framework has problems with it
-D WLED_DISABLE_ADALIGHT ;; to disable serial protocols when using CDC USB (Serial RX pin will receive junk commands, unless its pulled down by resistor)
-D WLED_DISABLE_INFRARED ;; save flash space
;-D WLED_DISABLE_ALEXA ;; save flash space