From 8755406d8d852447e0a88f11d99b70da848b7d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 9 Nov 2021 18:11:22 +0100 Subject: [PATCH] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3a7cb52..dc2a79a 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,6 @@ LED_BRIGHTNESS = 255 # Set to 0 for darkest and 255 for brightest LED_INVERT = False # True to invert the signal (when using NPN transistor level shift) LED_CHANNEL = 0 # set to '1' for GPIOs 13, 19, 41, 45 or 53 -global led_power led_power = True try: @@ -68,6 +67,7 @@ def blink(strip, color1, color2, iterations=10, wait_ms=10): time.sleep(1) def led_power_toggle(): + global led_power if led_power == True: led_power = False else: