from machine import Pin, SoftI2C from lcd_api import LcdApi from pico_i2c_lcd import I2cLcd from time import sleep from random import randint I2C_ADDR = 0x27 filas = 2 columnas = 16 i2c = SoftI2C(scl=Pin(22), sda=Pin(21), freq=10000) lcd = I2cLcd(i2c, I2C_ADDR, filas, columnas) while True: f = randint(0,1) c = randint(0,6) lcd.move_to(c,f) lcd.putstr('Hola Pep! ') sleep(1) lcd.clear()