Merge branch 'master' of github.com:mandlm/Pi
This commit is contained in:
commit
4cb09d6ff1
1 changed files with 1 additions and 5 deletions
6
led.py
6
led.py
|
@ -4,8 +4,6 @@ from time import sleep
|
||||||
|
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
|
|
||||||
print 'blah'
|
|
||||||
|
|
||||||
pin = 14
|
pin = 14
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -18,8 +16,6 @@ try:
|
||||||
GPIO.output(pin, 0)
|
GPIO.output(pin, 0)
|
||||||
sleep(1)
|
sleep(1)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
GPIO.output(pin, 0)
|
pass
|
||||||
finally:
|
finally:
|
||||||
GPIO.cleanup()
|
GPIO.cleanup()
|
||||||
|
|
||||||
print 'end'
|
|
||||||
|
|
Loading…
Reference in a new issue