rgbw/rgb pixels

This commit is contained in:
folkert van heusden 2024-05-09 20:26:50 +02:00
parent 2211ed85ad
commit 2d4c9d39c3
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -67,7 +67,11 @@ void console_esp32::panel_update_thread()
#if !defined(BUILD_FOR_RP2040) && defined(NEOPIXELS_PIN) #if !defined(BUILD_FOR_RP2040) && defined(NEOPIXELS_PIN)
constexpr const uint8_t n_leds = 60; constexpr const uint8_t n_leds = 60;
#if defined(RGBW_PIXELS)
Adafruit_NeoPixel pixels(n_leds, NEOPIXELS_PIN, NEO_RGBW); Adafruit_NeoPixel pixels(n_leds, NEOPIXELS_PIN, NEO_RGBW);
#else
Adafruit_NeoPixel pixels(n_leds, NEOPIXELS_PIN, NEO_RGB);
#endif
pixels.begin(); pixels.begin();
pixels.clear(); pixels.clear();