From d2e6a568baf3a70393f457a830e09de8cee08a52 Mon Sep 17 00:00:00 2001 From: Jonny Davey Date: Sat, 7 Feb 2026 21:52:22 +0000 Subject: [PATCH] Use NeoPixelBus fork with ESP32-C5 bit-bang and I2S fixes Replace upstream NeoPixelBus with jonny190/NeoPixelBus fork (d4bbe3f) which adds C5 to the I2S exclusion guard and fixes the bit-bang LED output method (cycle counter CSR 0xC00, GPIO register types). Spell out C5 lib_deps explicitly to avoid pulling both the upstream and fork NeoPixelBus, which causes duplicate compilation errors. Upstream PR: https://github.com/netmindz/NeoPixelBus/pull/1 --- platformio.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 9e7b61258..1c7a992b5 100644 --- a/platformio.ini +++ b/platformio.ini @@ -474,9 +474,17 @@ build_flags = -g ;; ARDUINO_USB_CDC_ON_BOOT ${esp32_idf_V5.build_flags} lib_deps = - ${esp32_idf_V5.lib_deps} + ;; NB: we spell out deps explicitly (instead of ${esp32_idf_V5.lib_deps}) to replace + ;; the upstream NeoPixelBus with a C5-patched fork; using both causes duplicate compilation. + ${esp32_all_variants.lib_deps} + fastled/FastLED @ 3.10.1 + https://github.com/jonny190/NeoPixelBus.git#d4bbe3f899a9d7c39ff4569827b2cf4665b3b64d ;; C5 support: I2S exclusion + bit-bang CSR/GPIO fixes on top of netmindz CORE3 + https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.4.2 + marvinroger/AsyncMqttClient @ 0.9.0 + https://github.com/blazoncek/QuickESPNow.git#optional-debug lib_ignore = ${esp32_idf_V5.lib_ignore} esp_dmx ;; esp_dmx library doesn't support C5 UART registers yet +extra_scripts = ${scripts_defaults.extra_scripts} [env:esp32c5dev] ;; ESP32-C5 "devkit C" with 4MB flash, no PSRAM - EXPERIMENTAL