From 3f4a5ca91e4a01584e2bf7adaf19ba9afe43f814 Mon Sep 17 00:00:00 2001 From: mandlm Date: Mon, 1 Feb 2016 08:55:27 +0100 Subject: [PATCH] Cleanup --- button_led.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/button_led.py b/button_led.py index c634b6c..e650280 100755 --- a/button_led.py +++ b/button_led.py @@ -8,7 +8,6 @@ ledPin = 14 buttonPin = 16 def buttonHandler(channel): - print "button pushed" GPIO.output(ledPin, not GPIO.input(ledPin)) try: @@ -23,8 +22,7 @@ try: while True: GPIO.wait_for_edge(15, GPIO.RISING) - print "blah" except KeyboardInterrupt: - GPIO.output(ledPin, False) + pass finally: GPIO.cleanup()