//Nama : Chandra Philanthrope Renomme
//Nim : 2019230041
//Hari & Tanggal : Senin, 05-12-2022
#include <LiquidCrystal_I2C.h> //Deklrasi library LCD
LiquidCrystal_I2C lcd(0x27,16,2); //Deklarasi perintah dasar
void setup()
{
lcd.init(); //inisialisasi untuk menyalakan lcd
lcd.backlight(); //inisialisai untuk menyalakan backlight dari lcd
}
void loop()
{
lcd.clear(); // clear display
lcd.setCursor(0, 0); // move cursor to (0, 0)
lcd.print("ESP32"); // print message at (0, 0)
lcd.setCursor(2, 1); // move cursor to (2, 1)
lcd.print("wokwi.com"); // print message at (2, 1)
delay(2000); // display the above for two seconds
lcd.clear(); // clear display
lcd.setCursor(3, 0); // move cursor to (3, 0)
lcd.print("DIYables"); // print message at (3, 0)
lcd.setCursor(0, 1); // move cursor to (0, 1)
lcd.print("diyables.io"); // print message at (0, 1)
delay(2000); // display the above for two seconds
}