BlinkStick Flex Syncron

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 :wink:

@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:

http://arvydas.github.io/BlinkStickDotNet/class_blink_stick_dot_net_1_1_blink_stick.html#a7ec384e7e617ceb3acdfab7e1e7c631a

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.