You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find in the code how to set the color of a particular led on my blinkstick. The sample code does light up the first LED on my stick, but I can't do anything with the rest of the LED's.
I tried a few numbers and got some interesting behavior.
0x01 lights the first LED
0x02, 0x03, 0x04 do nothing
0x05 lights all 8 lights with wrong colors.
0x06, 0x07, 0x08, 0x09 first LED again
0x10-0x50 nothing
So it'll be a guessing game, but with time probably hackable assuming the first byte does address the LED's.
Sorry to necro, but I've just been playing with this and it looks like to address individual LED's you need to change the byte array you write to be something like this, changing the third byte to be the index of the LED you want to set
returnd.WriteFeature([]byte{
0x05, // report id for indexed colour0x00, // RGB channel0x00, // LED indexbyte(r>>8),
byte(g>>8),
byte(b>>8),
})
I couldn't find in the code how to set the color of a particular led on my blinkstick. The sample code does light up the first LED on my stick, but I can't do anything with the rest of the LED's.
This is the item I purchased:
https://www.blinkstick.com/products/blinkstick-strip
If you feel like updating the project to handle more than one LED that would be cool. :)
The text was updated successfully, but these errors were encountered: