Update main.py

master
Ebbe Baß 2021-11-09 18:23:29 +01:00
parent 7c3e0b3db1
commit 7fd658ffa8
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ def blink(strip, color1, color2, iterations=10, wait_ms=10):
strip.show()
time.sleep(1)
def led_power_toggle():
def led_power_toggle(channel):
global led_power
if led_power == True:
led_power = False
@ -78,7 +78,7 @@ def read_idle():
with open('./idle.txt', 'r') as f:
idle_mode = f.readline()
def change_idle_mode():
def change_idle_mode(channel):
global idle_mode
with open('./idle.txt', 'w') as f:
f.write(int(idle_mode) + 1)