diff --git a/main.py b/main.py index ddb6482..6455505 100644 --- a/main.py +++ b/main.py @@ -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)