from machine import Pin
from time import sleep, ticks_ms
button = Pin(14 , Pin.IN, Pin.PULL_DOWN)
led = Pin(2, Pin.OUT)
while True:
button_nu = button.value()
led.value(button_nu)
from machine import Pin
from time import sleep, ticks_ms
button = Pin(14 , Pin.IN, Pin.PULL_DOWN)
led = Pin(2, Pin.OUT)
while True:
button_nu = button.value()
led.value(button_nu)