print("Hello, ESP32!")
from time import sleep_ms,ticks_ms
from machine import I2C,Pin
from i2c_lcd import I2cLcd
#I2C setting
i2c=I2C(scl=Pin(22), sda=Pin(21),freq=400000)
#LCD with i2c
AdressOfLcd = 0x27
lcd = I2cLcd(i2c, AdressOfLcd,2,16)
def displayLCD():
lcd.move_to(0,0)
lcd.putstr('Ngaill')
lcd.move_to(5,1)
lcd.putstr('Gihh')
sleep_ms(1000)
lcd.move_to(5,1)
lcd.putstr('Awal! ')
sleep_ms(500)
while True:
displayLCD()
sleep_ms(500)