from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
from lcd_api import LcdApi
from pico_i2c_lcd import I2cLcd
from time import sleep
rows = 2
columns = 16
lcd_address = 0x27
w = 128
h = 64
i2c_lcd = I2C(0, sda=Pin(0), scl=Pin(1), freq=400000)
lcd = I2cLcd(i2c_lcd, lcd_address, rows, columns)
while True:
# LCD steps to type hello world
lcd.clear()
lcd.move_to(0, 0)
lcd.putstr("Hello World")
sleep(2)