turn lights off

This commit is contained in:
j 2024-01-15 10:39:21 +01:00
parent f6d30d1fc0
commit 2782bb920d

View file

@ -96,8 +96,9 @@ def fade_to(target, duration):
CURRENT_STATE = sender[1].dmx_data[:16] CURRENT_STATE = sender[1].dmx_data[:16]
time.sleep(step) time.sleep(step)
steps -= 1 steps -= 1
CURRENT_STATE = sender[1].dmx_data = [0] * 16 sender[1].dmx_data = [0] * 16
time.sleep(1) CURRENT_STATE = [0] * 16
time.sleep(0.1)
sender.stop() sender.stop()