Adress all leds of a flex with .net


#1

Hi -
just bought 2 flex with the intend to let them interact with Unity.
I’m not yet there… I can’t even address them with native .net.
Whatever index I set in setcolor, I get only the first led changing color.

I obviously set the mode to 2 and then try to change the color of the 3rd led, but I’m not successful. only the first will change color.

device.SetMode (2);
device.SetColor(0, 3, “#ff0000”);

Any idea how to fix this?

Note that the client application (2.0) works well to adress any LED…

thx
laurent


#2

You need to set the mode only once as it is remembered by BlinkStick if you plug it in or unplug it. Also, best way to control Flex is to send LED frames. You can find example here:


#3

You need to set the mode only once as it is remembered by BlinkStick if you plug it in or unplug it.
Yes - I read that, but this command line is present in all sample codes (including the one you are referring too. Removing it or not would not make any change.
Also, best way to control Flex is to send LED frames.
The code you’re referring was also tested but only the first LED changes color.

It would look like a defect but I have 2 strips and both show the same, and also the client app allows to set the color to any led…
any other idea?


#4

“would not make any change.” [EDIT] to my current issue


#5

Would you be able to paste the full code you are trying to control BlinkStick?


#6

Sorry - stupid mistake from my end. I was launching the wrong code… Apologies. THe sample code works fine.


#7

Happens :smile: Let me know if there is anything else I can help you with.