Hi,
How can I control with a Flex all 32 LED’s syncron in C#?
Mode 3 controls only the first 8 …
I have found something from @p0ke:
byte[] data = new byte[9] {255,0,0,0,255,0,0,0,255};
blink.SetColors(0,data);
I’ll test it tomorrow with all 32
@BenS just initialize an array of 32*3 bytes and you should be good to go!
byte[] data = new byte[32*3]; //GRB format
data[10] = 255;
// and so on
blink.SetColors(0,data);
More details about the function can be found here:
Just remember to add a timeout of 20 ms after you send each packet as BlinkStick needs to send the data to the LEDs and can’t communicate via USB.