That I do know how to do. Not sure why multiple LEDs would be lighting up like that, it would also be helpful if we could see the relevant bits of code you’re using that’s doing that, but:
stick.set_color(0, index, r, g, b)
will do the trick just to set one color for one LED. But the blinkstick needs to have a little rest (about 20ms) between commands, so if you want to be setting multiple LEDs at the same time then there’s also this fancy command:
stick.set_led_data(0, data)
where data is just a big list of the colors you want. So if you wanted to light the first 3 LEDs up red, green, and blue you’d do this:
data = [
0, 255, 0, # 1st LED red
255, 0, 0, # 2nd LED green
0, 0, 255 # 3rd LED blue
]
stick.set_led_data(0, data)
a good way to work with that would be:
data = [0]*stick.get_led_count()*3 # Create a list of 0s as big as the number of LEDs you have. We multiply it by 3 so we have an R, G, and B for each LED.
So if you had that, and you wanted to set the first and last LED pure white, you could do
data = [0]*stick.get_led_count()*3
i = 0
data[i*3:i*3+2] = [255, 255, 255]
i = 31
data[i*3:i*3+2] = [255, 255, 255]
stick.set_led_data(0, data)