from machine import I2C, Pin
from i2c_lcd1602 import I2C_LCD1602
from time import sleep_ms
# Initialize I2C
i2c = I2C(1, sda=Pin(16), scl=Pin(17))
# Initialize LCD
LCD = I2C_LCD1602(i2c)
# Display text on the first line
LCD.puts("arvind patil", 0, 0) # (text, column, row)
# Write text on the second line
LCD.puts("ai nandurbar", 0, 1) # (text, column, row)
# Optional: keep updating or blinking text
while True:
sleep_ms(1000)