from machine import Pin
from lcd_api import LcdApi
from time import sleep, sleep_ms
# Define GPIO pins for LCD
lcd_pins = {
'rs': 16,
'e': 17,
'data': [18, 19, 20, 21]
}
# Initialize the LCD
lcd = LcdApi(2, 16, lcd_pins) # 2 lines, 16 columns
while True:
lcd.clear()
lcd.move_to(1, 1)
lcd.putstr("Hello_World")
sleep(1)