from machine import I2C, Pin
from pico_i2c_lcd import I2cLcd
import time
# إعداد I2C
i2c = I2C(0, sda=Pin(0), scl=Pin(1), freq=400000)
# إنشاء كائن LCD
lcd = I2cLcd(i2c, 0x27, 2, 16)
lcd.clear()
lcd.move_to(0, 0)
lcd.putstr("Raspberry Pi")
lcd.move_to(0, 1)
lcd.putstr("LCD I2C OK!")
while True:
time.sleep(1)