from machine import Pin
from utime import sleep
led = Pin(0,Pin.OUT)
pulsador=Pin(4,Pin.IN,Pin.PULL_DOWN)
while True:
if pulsador.value()==1:
led.toggle()
sleep(0.03)
from machine import Pin
from utime import sleep
led = Pin(0,Pin.OUT)
pulsador=Pin(4,Pin.IN,Pin.PULL_DOWN)
while True:
if pulsador.value()==1:
led.toggle()
sleep(0.03)