import time
from machine import SoftI2C, Pin
from esp32_i2c_1602lcd import I2cLcd


DEFAULT_I2C_ADDR = 0x27
i2c = SoftI2C(sda=Pin(12),scl=Pin(14),freq=100000)
lcd = I2cLcd(i2c, DEFAULT_I2C_ADDR, 2, 16)

for i in range(1, 10):
    lcd.clear()
    lcd.putstr("loading...{}\n".format(i))
    lcd.putstr("44444444444444444")
    time.sleep(1)

# SDA GPIO15
# SCL GPIO2
# Vcc 5V (3V显示不清楚)
# GND GND