#Pull-up Working Mode
import machine
import utime
led = machine.Pin(1, machine.Pin.OUT)
button = machine.Pin(14, machine.Pin.IN)
while True:
if button.value() == 0:
led.value(1)
else:
led.value(0)
#Pull-up Working Mode
import machine
import utime
led = machine.Pin(1, machine.Pin.OUT)
button = machine.Pin(14, machine.Pin.IN)
while True:
if button.value() == 0:
led.value(1)
else:
led.value(0)