switch all leds off when exiting

This commit is contained in:
mandlm 2016-01-08 11:05:49 +01:00
parent dcd2ad2b09
commit 12dab7ee19

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import glob
import os
@ -98,5 +98,8 @@ if __name__ == '__main__':
try:
while True:
GPIO.wait_for_edge(dummyPin, GPIO.RISING)
except KeyboardInterrupt:
print 'exiting'
finally:
setLeds(0, 0, 0)
GPIO.cleanup()