Commit fd2ae450 authored by plaasio's avatar plaasio 👷🏽

Update btns.py

parent 70265952
import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library
print("pressing")
try:
GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
......@@ -21,6 +23,5 @@ try:
if GPIO.input(18) == GPIO.HIGH:
print("yes")
break
finally:
print("pressed")
finally:
GPIO.cleanup()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment