#libreria para menjar pines 
import machine
from machine import Pin
#Librerias para el manejo del tiempo 
import time 
led = Pin(3, Pin.OUT)
# Configurar comunicaciones I2C
import lcd_api
from lcd_api import LcdApi
import i2c_lcd
from i2c_lcd import i2c_Lcd
#Creamos el objeto LCD I2C
i2c = I2C(1, scl=Pin(27), sda=Pin(26), freq=200000)

while True:
    #Encender el Led
    led.value(1)
    lcd.clear()
    lcd.putstr("LED ENCENDIDO")
    time.sleep(3)
    #Apagado del Led
    led.value(0)
    lcd.clear()
    lcd.putstr("led apagado")
    time.sleep(3)