parent
9dc593bfdf
commit
0379c78f57
|
@ -60,6 +60,7 @@ def is_connected_to_wifi():
|
||||||
def update_led_strip(rgb_values, pixel, strip):
|
def update_led_strip(rgb_values, pixel, strip):
|
||||||
print(rgb_values)
|
print(rgb_values)
|
||||||
strip[int(pixel)] = rgb_values
|
strip[int(pixel)] = rgb_values
|
||||||
|
print("Updated pixel "+str(pixel)+" with "+str(rgb_values))
|
||||||
|
|
||||||
def on_message(mqttc, obj, msg):
|
def on_message(mqttc, obj, msg):
|
||||||
if msg.topic == "tube-"+wlan_mac_address+"/p1":
|
if msg.topic == "tube-"+wlan_mac_address+"/p1":
|
||||||
|
|
Loading…
Reference in New Issue