import utime
from machine import Pin
button=Pin(0,Pin.IN,Pin.PULL_UP)
while True:
print("hii")
b1=button.value()
print("Button1:",b1)
utime.sleep(1)
import utime
from machine import Pin
button=Pin(0,Pin.IN,Pin.PULL_UP)
while True:
print("hii")
b1=button.value()
print("Button1:",b1)
utime.sleep(1)