from machine import Pin, SoftI2C
from i2c_lcd import I2cLcd
i2c = SoftI2C(scl=Pin(22), sda=Pin(21), freq=400000)
lcd = I2cLcd(i2c, 0x27, 2, 16) #i2c, address, 2 rows, 16 cols
lcd.backlight_on()
lcd.clear()
while True:
lcd.move_to(0, 0)
lcd.putstr("ESP 32")
lcd.move_to(0, 1)
lcd.putstr("Micropython")