form machine import pin
import time
button=Pin(1.Pin.IN.Pin.PULL.UP)
while true:
print("====================")
b1=button1.value()
print("Button"):",b1)
time.sleep(1)
form machine import pin
import time
button=Pin(1.Pin.IN.Pin.PULL.UP)
while true:
print("====================")
b1=button1.value()
print("Button"):",b1)
time.sleep(1)