Update main.py
parent
bc20d65602
commit
8755406d8d
2
main.py
2
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:
|
||||
|
|
Loading…
Reference in New Issue