#---[MÓDULOS que se REQUIEREN]---
from machine import Pin
from utime import sleep
# Creación de un 'objeto' LED
led_amarillo = Pin(23, Pin.OUT)
boton_verde= Pin(21, Pin.IN, Pin.PULL_UP)
# Aviso #
print()
print("= Inicio de la aplicación =")
print()
while(True):
if (boton_verde.value()==1):
led_amarillo.value(on)
else:
led_amarillo.value(off)
#led_amarillo.value(1)
#print("- encendido -")
#sleep(1.5)
#led_amarillo.value(0)
#print("-- apagado --")
#sleep(0.5)
#---[CICLO]---