micropython-examples/button/button.py

11 lines
177 B
Python
Raw Normal View History

2021-06-17 07:51:13 +00:00
from machine import Pin
from time import sleep
button = Pin(13, Pin.IN) #D7
button2 = Pin(14, Pin.IN) #d5
while True:
print(button.value(), button2.value())
sleep(1)