from machine import Pin
from machine import I2C
from lcd_api import LcdApi
from i2c_lcd import I2cLcd
from time import sleep
I2C_ADDR = 0x27
totalRows = 2
totalColumns = 16
sdaPIN-Pin(21)
sclPIN=Pin(22)
i2c=I2C(0, sda=sdaPIN, scl=sclPIN, freq=10000)
lcd = I2cLcd (i2c, I2C_ADDR, totalRows, totalColumns)
while True:
for i in range (0,16):
lcd.move_to(i, 0)
lcd.putstr("WELCOME")
sleep (2)
lcd.clear()