from machine import I2C, Pin,ADC
from time import sleep
from pico_i2c_lcd import I2cLcd
i2c = I2C(0, sda=Pin(0), scl=Pin(1), freq=400000)
LDR=ADC(26)
I2C_ADDR = i2c.scan()[0]
lcd = I2cLcd(i2c, I2C_ADDR, 2, 16)
while True:
a=LDR.read_u16()
print(a)
lcd.move_to(0,0)
lcd.putstr("ldr value")
lcd.move_to(0,1)
lcd.putstr(str(a))