From eb900007552364c84d8ce4db60d0b5ea2cc30b74 Mon Sep 17 00:00:00 2001 From: Davide Perini Date: Wed, 7 Aug 2024 12:44:43 +0200 Subject: [PATCH] correct color order based on the function interface and the BlinkRGB.ino example. --- cores/esp32/esp32-hal-rgb-led.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-rgb-led.c b/cores/esp32/esp32-hal-rgb-led.c index 99c95e1943e..b55aa9f06fb 100644 --- a/cores/esp32/esp32-hal-rgb-led.c +++ b/cores/esp32/esp32-hal-rgb-led.c @@ -15,7 +15,7 @@ void neopixelWrite(uint8_t pin, uint8_t red_val, uint8_t green_val, uint8_t blue return; } - int color[] = {green_val, red_val, blue_val}; // Color coding is in order GREEN, RED, BLUE + int color[] = {red_val, green_val, blue_val}; int i = 0; for (int col = 0; col < 3; col++) { for (int bit = 0; bit < 8; bit++) {