Commit 2c7613ff authored by plaasio's avatar plaasio 👷🏽

Update btns.py

parent 96c321dd
......@@ -3,8 +3,12 @@ import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library
print("pressing")
async def mon(x)
return "hi"
try:
GPIO.setwarnings(False) # Ignore warning for now
await def("1")
GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
GPIO.setup(13, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Set pin 22 to be an input pin and set initial value to be pulled low (off)
GPIO.setup(15, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Set pin 23 to be an input pin and set initial value to be pulled low (off)
......
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