diyhue / Lights

DIY lights with support for diyHue
https://diyhue.org/
172 stars 97 forks source link

Change Color Order #148

Closed cscherpenisse closed 4 months ago

cscherpenisse commented 4 months ago

I have an LED strip that looks like the WS2812B. This works with the WS2812_STRIP v3.1 on a Wemos D1 mini. Only the colors do not match, red=blue, blue=green and green=red. Is it possible to change the color order from, for example, RGB to GRB?

hendriksen-mark commented 4 months ago

You can change to order by changing these 2 lines. Rgb or grb or bgr or what you need.

https://github.com/diyhue/Lights/blob/master/ESP8266%2FGeneric_WS2812_Strip%2FGeneric_WS2812_Strip.ino#L64

https://github.com/diyhue/Lights/blob/master/ESP8266%2FGeneric_WS2812_Strip%2FGeneric_WS2812_Strip.ino#L568

Its not possible to change it after flashing.

cscherpenisse commented 4 months ago

Thanks for your instruction, it works now.

cscherpenisse commented 4 months ago

-