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: