Update main.py

master
Ebbe Baß 2021-11-09 19:21:14 +01:00
parent fcd91632aa
commit 2a15a35814
1 changed files with 3 additions and 3 deletions

View File

@ -70,10 +70,10 @@ def led_power_toggle(channel):
global led_power
if led_power == True:
led_power = False
return False
else:
led_power = True
print('Led toggled: '+str(led_power))
return led_power
return True
def read_idle():
with open('./idle.txt', 'r') as f:
@ -114,7 +114,7 @@ if __name__ == '__main__':
with open('./idle.txt', 'r') as f:
idle_mode = f.readline()
print(str(led_power_toggle))
print(led_power_toggle)
if led_power_toggle == False:
setColor(strip, Color(0,0,0))