Update main.py

master
Ebbe Baß 2021-11-09 18:11:22 +01:00
parent bc20d65602
commit 8755406d8d
1 changed files with 1 additions and 1 deletions

View File

@ -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: