from machine import Pin, SoftI2C
from i2c_lcd import I2cLcd
from utime import sleep, sleep_ms
adress = 0x27
i2c = SoftI2C(scl=Pin(22), sda=Pin(21), freq=100000) # connect scl to GPIO 22, sda to GPIO 21
lcd = I2cLcd(i2c, adress, 2, 16)
snake = "-"
while True:
for i in range(13):
lcd.move_to(i,0)
lcd.putstr('-->')
sleep(0.3)
lcd.clear()
lcd.move_to(10,1)
lcd.putstr("--Hi--")
sleep(5)