From 2d4c9d39c31fb1ccf6b426f7132f9872438b55a3 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 9 May 2024 20:26:50 +0200 Subject: [PATCH] rgbw/rgb pixels --- ESP32/console_esp32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ESP32/console_esp32.cpp b/ESP32/console_esp32.cpp index ba5912c..cb2efd8 100644 --- a/ESP32/console_esp32.cpp +++ b/ESP32/console_esp32.cpp @@ -67,7 +67,11 @@ void console_esp32::panel_update_thread() #if !defined(BUILD_FOR_RP2040) && defined(NEOPIXELS_PIN) constexpr const uint8_t n_leds = 60; +#if defined(RGBW_PIXELS) Adafruit_NeoPixel pixels(n_leds, NEOPIXELS_PIN, NEO_RGBW); +#else + Adafruit_NeoPixel pixels(n_leds, NEOPIXELS_PIN, NEO_RGB); +#endif pixels.begin(); pixels.clear();