#include <LiquidCrystal_I2C.h>
// Inisialisasi objek LCD dengan alamat I2C dan jumlah kolom dan baris
LiquidCrystal_I2C lcd(0x27, 16, 2); // Alamat I2C biasanya 0x27 untuk modul LCD 16x2
// 👇 pixel untuk emoticon ❤
byte love[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000
};
void setup() {
// Inisialisasi LCD
lcd.begin(16,2);
lcd.backlight();
lcd.createChar(0, love);
}
void loop() {
// Bersihkan layar
lcd.clear();
// Tampilkan lirik lagu secara bertahap
lcd.print("I still think of");
lcd.setCursor(0,1);
lcd.print("you too");
delay(2500);
lcd.clear();
lcd.print("If only you knew");
delay(2000);
lcd.clear();
lcd.print("When I'm feeling");
lcd.setCursor(0,1);
lcd.print("a bit down");
delay(2000);
lcd.clear();
lcd.print("I don't wanna");
lcd.setCursor(0,1);
lcd.print("pull through");
delay(2500);
lcd.clear();
lcd.print("I look over");
lcd.setCursor(0,1);
lcd.print("your photograph");
delay(2000);
lcd.clear();
lcd.print("And I think how");
lcd.setCursor(0,1);
lcd.print("much I miss you");
delay(3000);
lcd.clear();
lcd.write(0);
lcd.print(" I miss you ");
lcd.write(0);
delay(4000);
}