parent
2ba7070e9d
commit
be6f16f968
2
main.py
2
main.py
|
@ -121,10 +121,8 @@ if __name__ == '__main__':
|
||||||
rainbowCycle(strip)
|
rainbowCycle(strip)
|
||||||
elif mode == 1:
|
elif mode == 1:
|
||||||
setColor(strip, Color(int(r), int(g), int(b)))
|
setColor(strip, Color(int(r), int(g), int(b)))
|
||||||
time.sleep(1)
|
|
||||||
else:
|
else:
|
||||||
setColor(strip, Color(0,0,0))
|
setColor(strip, Color(0,0,0))
|
||||||
time.sleep(1)
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
client.publish("server-rack-led/power", "False")
|
client.publish("server-rack-led/power", "False")
|
||||||
|
|
Loading…
Reference in New Issue