Hi Guys, I got some small problem. I have a led strip with WS2812B and when I do green it’s red and opposite. Is it a problem with chips on LEDs reading those two colors wrongly?
Have a look at the “Rgb calibration” example included with the library to determine what order the colours are arranged.
It’s a known issue with the wiring on some strips. Try the following setup. With COLOR_ORDER you can sort your colors.
#define LED_PIN xx
#define COLOR_ORDER GRB
#define CHIPSET WS2812
#define NUM_LEDS xx
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS);
}
You need to set the right color order when you add your leds.
example:
LEDS.addLeds<WS2812B, LED_PIN, RGB>(leds, NUM_LEDS);
vs
LEDS.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
The latter (GRB) is the order on my ws2812b strips
lol love this group, so many quick helpful people!
Thanks guys a lot
Thats solved my problem
Randal You are 100% right this group is great 