grb ws2812b? #850
Replies: 6 comments
-
Posted at 2016-03-03 by DrAzzy I've never seen RGB WS2812B's - I've always seen GRB. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-03 by MrTimcakes Huh, here on the wiki it comments that as green but when I try it its red, but perhaps that is because the wiki is written on the older WS2811's? EDIT: Nevermind you're completely correct, checked the datasheet and it does say follow the order of GRB. Guess I'm just gonna have to get used to it. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-04 by @gfwilliams Annoyingly there seem to be many different colour orders - I think the APA104 ones might be different again? I'm afraid it's just something you have to put up with - not much you can do from Espruino's side. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-04 by DrAzzy The ws2811 ones can be any color order, since it's up to the guy making the boards which color leds he puts on which pins |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-04 by @gfwilliams Just to add that if you're controlling them with the Graphics lib, you can specify a colour order: http://www.espruino.com/Reference#l_Graphics_createArrayBuffer |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-04 by MrTimcakes Thanks @gordon I didn't know about that should make it easier for my brain, I'm just used to everything always being RGB. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-03-03 by MrTimcakes
I've recently started playing with a WS2812B ring and I expected the color format to be RGB, however when I send a [255,0,0] the first LED lights up green instead of red. This baffled me so I tried [0,255,0] and the first LED turned red and [0,0,255] blue. Are some variants of the WS2812b's GRB instead of RGB or am I doing something wrong? This also happens when using the graphics library the color scheme is GRB.
Beta Was this translation helpful? Give feedback.
All reactions