import machine
from lcd_api import LcdApi
from i2c_lcd import I2cLcd
i2c = machine.SoftI2C(sda=machine.Pin(21), scl=machine.Pin(22), freq=10000)
lcd = I2cLcd(i2c, 0x27, 2, 16)
logo = bytearray([0x1B, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x1B])
smile = bytearray([0x00, 0x00, 0x0A, 0x00, 0x11, 0x0E, 0x00, 0x00])
lcd.custom_char(0, logo)
lcd.custom_char(1, smile)
lcd.move_to(2,0)
lcd.putstr("Hello " + chr(0) + "akep!")
lcd.move_to(7,1)
lcd.putstr(chr(1))