from machine import I2C, Pin
from time import sleep
from i2c_lcd import I2cLcd
i2c = I2C(0, sda=Pin(21), scl=Pin(22), freq=400000)
DEFAULT_I2C_ADDR = i2c.scan()[0]
lcd = I2cLcd(i2c, DEFAULT_I2C_ADDR, 2, 16)
while True:
lcd.move_to(0, 1)
lcd.putstr("bharath")
lcd.move_to(0,0)
lcd.putchar('d')
lcd.move_to(5,0)
lcd.putstr(str(39))