parent
c1d4f27d65
commit
7ab0e6ffaa
|
@ -65,11 +65,11 @@ def on_message(mqttc, obj, msg):
|
|||
rgb_values = (*ast.literal_eval(msg.payload.decode()), )
|
||||
if msg.topic == "tube-"+wlan_mac_address+"/p1":
|
||||
for pixel in range(LEDS_PER_PIXEL):
|
||||
print(pixel)
|
||||
update_led_strip(rgb_values, pixel, strip)
|
||||
|
||||
elif msg.topic == "tube-"+wlan_mac_address+"/p2":
|
||||
for pixel in range(LEDS_PER_PIXEL, LEDS_PER_PIXEL*2):
|
||||
print(pixel)
|
||||
update_led_strip(rgb_values, pixel, strip)
|
||||
|
||||
elif msg.topic == "tube-"+wlan_mac_address+"/p3":
|
||||
|
|
Loading…
Reference in New Issue