#led GP 0,1,2,3
#botons GP 21,22
from machine import Pin
import time
#inicializacion de entrdas/ salidas
numero = 0
boton_uno = Pin(21, Pin.IN, Pin.PULL_DOWN)
boton_dos = Pin(22, Pin.IN, Pin.PULL_DOWN)
led_cero = Pin(0, Pin.OUT)
led_uno = Pin(1, Pin.OUT)
led_dos = Pin(2, Pin.OUT)
led_tres = Pin(3, Pin.OUT)
led_tres.on()
while True:
if boton_uno.value() == 1:
led_tres.off()
led_uno.on()
time.sleep(2)
led_uno.off()
led_cero.on()
led_dos.on()
elif boton_dos.value() == 1:
led_cero.off()
led_uno.off()
led_dos.off()
led_tres.on()