from machine import Pin
import time
button1 = Pin(1, Pin.IN)#Extenal pull-up
while True:
print("=========================")
b1=button1.value()
print("Button1: ",b1)
time.sleep(0.5)from machine import Pin
import time
button1 = Pin(1, Pin.IN)#Extenal pull-up
while True:
print("=========================")
b1=button1.value()
print("Button1: ",b1)
time.sleep(0.5)