from machine import Pin, I2C
from lcd_api import LcdApi
from i2c_lcd import I2cLcd
import time
# Your wiring uses GP2 (SDA) and GP3 (SCL) → I2C1
i2c = I2C(1, scl=Pin(3), sda=Pin(2), freq=400000)
# Your I2C scan showed address 39 → 0x27
lcd = I2cLcd(i2c, 0x27, 4, 20)
lcd.clear()
lcd.putstr("LCD TEST OK")
lcd.move_to(0, 1)
lcd.putstr("Hello Layson!")