Sending an array of RGB data to a strip of RGBW LEDs
Closed this issue · 5 comments
eltang commented
Is there any easy way to do this?
rascafr commented
Just send a 4 byte array (eg: 0x80,0x80,0x00,0x00 for a yellow colour) using the function defined in the *. h file (ws2812_send(...)) :)
cpldcpu commented
I don't understand where the problem is. Just set W to 0?
eltang commented
I'm aiming to use another library to create the data to be sent to the LEDs. The problem is that it only works with RGB data, and converting it into RGBW data every time I want to send an update takes too long. Therefore, I'm wondering if this library can insert null bytes into RGB data as it is being sent out.
cpldcpu commented
The easiest way would be to copy the data to a new array - assuming you have enough memory. Otherwise you would have to build your own inner loop. That would be more involved.