import time
from machine import I2C, Pin
from time import sleep
from pico_i2c_lcd import I2cLcd
from machine import ADC
i2c = I2C(0, sda=Pin(0), scl=Pin(1), freq=400000)
I2C_ADDR = i2c.scan()[0]
lcd = I2cLcd(i2c, I2C_ADDR, 2, 16)
pot = ADC(26)
while True:
lcd.putstr("Hola mundo")
sleep(2)
lcd.clear()
lcd.putstr("Este es mi mundo")
sleep(2)
lcd.blink_cursor_off()
lcd.clear()
led.value(1)
sleep(1)
led.value(0)
valor = 1*pot.read_u16()/65535
print(valor)