parent
b32724eccb
commit
4b6eaead5c
|
@ -78,22 +78,22 @@ if __name__ == "__main__":
|
|||
mqttc.loop_start()
|
||||
while True:
|
||||
try:
|
||||
for pixel in range(LEDS_PER_PIXEL):
|
||||
for pixel in range(5):
|
||||
update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip)
|
||||
|
||||
for pixel in range(LEDS_PER_PIXEL, LEDS_PER_PIXEL*2):
|
||||
for pixel in range(5, 10):
|
||||
update_led_strip(tuple(eval(rgb_values_list[1])), pixel, strip)
|
||||
|
||||
for pixel in range(LEDS_PER_PIXEL*2, LEDS_PER_PIXEL*3):
|
||||
for pixel in range(10, 15):
|
||||
update_led_strip(tuple(eval(rgb_values_list[2])), pixel, strip)
|
||||
|
||||
for pixel in range(LEDS_PER_PIXEL*3, LEDS_PER_PIXEL*4):
|
||||
for pixel in range(15, 20):
|
||||
update_led_strip(tuple(eval(rgb_values_list[3])), pixel, strip)
|
||||
|
||||
for pixel in range(LEDS_PER_PIXEL*4, LEDS_PER_PIXEL*5):
|
||||
for pixel in range(20, 25):
|
||||
update_led_strip(tuple(eval(rgb_values_list[4])), pixel, strip)
|
||||
|
||||
for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6):
|
||||
for pixel in range(25, 30):
|
||||
update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip)
|
||||
except KeyboardInterrupt:
|
||||
for led in range(LED_COUNT):
|
||||
|
|
Loading…
Reference in New Issue