From 7fd658ffa877b950622380e5e8afb5f52a159c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 9 Nov 2021 18:23:29 +0100 Subject: [PATCH] Update main.py --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)