# WS2812 / NeoPixel™ LEDs
led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB)
#### Same results with GRB
If I’ve done this correctly, no, still multi coloured dots.
#### comment-out the Cheerlights colour
#colour = tuple(int(json['field2'][i:i + 2], 16) for i in (1, 3, 5)) # 1, 3, 5
# Force it to be red?
colour = (255,0,0)
print("testing colour is :", colour)
for i in range(NUM_LEDS):
led_strip.set_rgb(i, *colour)
I don’t think you need the * ? led_strip.set_rgb(i,colour)
I’m using HSV, as it gives me brightness control. If I get a chance I’ll do up my own test file doing it the standard way. I’m using a rotary encoder wheel to set my color and brightness. I’m using mine for my desktop lighting. I have to go find my custom USB data only cable so I don’t fry anything. My power supply will back feed into my PC if I don’t.
for s in range(GRB_LEDS):
led_strip.set_hsv(s, color, 1.0, brightness)
No, it doesn’t work that way with the data pin. There is a controller chip in each LED that turns them on or off depending on the data sent to it. That’s why you have the led_strip = plasma.WS2812.... and NUM_LEDS in the code.