mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
[neopixelbus] Fix neopixelbus on esp32 (#10123)
This commit is contained in:
@@ -225,6 +225,9 @@ async def to_code(config):
|
||||
# https://github.com/Makuna/NeoPixelBus/blob/master/library.json
|
||||
# Version Listed Here: https://registry.platformio.org/libraries/makuna/NeoPixelBus/versions
|
||||
if CORE.is_esp32:
|
||||
# disable built in rgb support as it uses the new RMT drivers and will
|
||||
# conflict with NeoPixelBus which uses the legacy drivers
|
||||
cg.add_build_flag("-DESP32_ARDUINO_NO_RGB_BUILTIN")
|
||||
cg.add_library("makuna/NeoPixelBus", "2.8.0")
|
||||
else:
|
||||
cg.add_library("makuna/NeoPixelBus", "2.7.3")
|
||||
|
||||
Reference in New Issue
Block a user