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)