parent
071d69a3b0
commit
1dbb818ed9
2
main.py
2
main.py
|
@ -59,6 +59,7 @@ def fade_in_animation(strip, mode, color):
|
|||
strip.setPixelColor(i, Color(randint(0, 255), randint(0, 255), randint(0, 255)))
|
||||
strip.show()
|
||||
time.sleep(1)
|
||||
debug_print("fade in done")
|
||||
|
||||
def wheel(pos):
|
||||
if pos < 85:
|
||||
|
@ -128,6 +129,7 @@ if __name__ == '__main__':
|
|||
if topic == "server-rack-led/power":
|
||||
global power
|
||||
power = payload
|
||||
global singleExecute
|
||||
singleExecute = True
|
||||
|
||||
elif topic == "server-rack-led/rgb":
|
||||
|
|
Loading…
Reference in New Issue