Update main.py
parent
ae2598895e
commit
395584ef70
3
main.py
3
main.py
|
@ -14,6 +14,8 @@ 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_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
|
LED_CHANNEL = 0 # set to '1' for GPIOs 13, 19, 41, 45 or 53
|
||||||
|
|
||||||
|
GPIO.cleanup()
|
||||||
|
|
||||||
led_power = True
|
led_power = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -135,3 +137,4 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
setColor(strip, Color(0,0,0))
|
setColor(strip, Color(0,0,0))
|
||||||
|
GPIO.cleanup()
|
Loading…
Reference in New Issue