rgbw/rgb pixels
This commit is contained in:
parent
2211ed85ad
commit
2d4c9d39c3
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue