import machine
import time
button = machine.Pin(6, machine.Pin.IN, machine.Pin.PULL_UP)
while True:
print("Button state", button.value())
time.sleep(0.1)
import machine
import time
button = machine.Pin(6, machine.Pin.IN, machine.Pin.PULL_UP)
while True:
print("Button state", button.value())
time.sleep(0.1)