from machine import Pin
import time
led = Pin(14,Pin.OUT)
boton = Pin(15, Pin.IN, Pin.PULL_UP)
while True:
if boton.value() == 0:
led.value(1)
else:
led.value(0)
from machine import Pin
import time
led = Pin(14,Pin.OUT)
boton = Pin(15, Pin.IN, Pin.PULL_UP)
while True:
if boton.value() == 0:
led.value(1)
else:
led.value(0)