OctoWS2811 - red is green!

Status
Not open for further replies.

luigo

Member
Hi all,

I've been working with the OctoWS2811 library for a while with Teensy 3 and 3.1.

The latest batch of WS2812 led ropes I bought however seem to display all the colours incorrectly. Red is green and green is red for instance. Searching for an answer online, I found a few discussion threads where references are made to different manufacturers using a different order (i.e. some are GRB instead of RGB). That would appear to be the case are white obviously works just fine.

Has anyone experienced this issue and if so, what adjustments can be made to make the library work with different strips?

Many thanks,
-Luigo
 
Yes, I have had this a number of times with both strips and individual pixel modules. You can test the rbg order with octows2811 by changing the config. WS2811_RGB, WS2811_GRB, etc. The basic test example shipped with teensyduino has the line: This test is useful for checking if your LED strips work, and which color config (WS2811_RGB, WS2811_GRB, etc) they require.
"const int config = WS2811_GRB | WS2811_800kHz;"
Options are WS2811_RGB, WS2811_RBG, WS2811_GRB, WS2811_GBR, WS2811_800kHz, WS2811_400kHz.
 
Status
Not open for further replies.
Back
Top