Skip to content

Commit eb90000

Browse files
committed
correct color order based on the function interface and the BlinkRGB.ino example.
1 parent 70786dc commit eb90000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-rgb-led.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void neopixelWrite(uint8_t pin, uint8_t red_val, uint8_t green_val, uint8_t blue
1515
return;
1616
}
1717

18-
int color[] = {green_val, red_val, blue_val}; // Color coding is in order GREEN, RED, BLUE
18+
int color[] = {red_val, green_val, blue_val};
1919
int i = 0;
2020
for (int col = 0; col < 3; col++) {
2121
for (int bit = 0; bit < 8; bit++) {

0 commit comments

Comments
 (0)