import time
from machine import Pin
time.sleep(0.1) # Wait for USB to become ready
led=Pin("LED",Pin.OUT)
a=0
while a!=3:
a=int(input("Pon un numero entre 1 y 3"))
if(a==1):
led.on()
if(a==2):
led.off()
import time
from machine import Pin
time.sleep(0.1) # Wait for USB to become ready
led=Pin("LED",Pin.OUT)
a=0
while a!=3:
a=int(input("Pon un numero entre 1 y 3"))
if(a==1):
led.on()
if(a==2):
led.off()