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)
#
Address0Lcd = 0x27
lcd = I2cLcd(i2c, Address0Lcd, 2, 16)
def displayLCD():
lcd.move_to(0,0)
lcd.putstr(' >MicroPython ')
lcd.move_to(0,1)
lcd.putstr(' ETC613 2024/25 ')
sleep_ms(1500)
lcd.move_to(0,0)
lcd.putstr('AWAS KEMALANGAN')
lcd.move_to(0,1)
lcd.putstr(' DI HADAPAN ! ')
sleep_ms(1500)
lcd.move_to(0,0)
lcd.putstr(' NUR ALIFF ')
lcd.move_to(0,1)
lcd.putstr(' 2022646598 ')
sleep_ms(1500)
while True:
displayLCD()
sleep_ms(1000)