#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Atur alamat dan ukuran LCD
LiquidCrystal_I2C lcd(0x27, 16, 4);
// Lirik lagu (8 baris)
const char* lirik[] = {
"Driving in my car",
"Right after a beer",
"Hey that bump is",
"shaped like a deer",
"DUI? How 'bout you die",
"I'll go a hundred",
"Miles an hour",
"What do you think?"
};
// Durasi tiap layar lirik (2 halaman x 4 baris)
const int displayDelay = 6000; // ms
void setup() {
lcd.init();
lcd.backlight();
lcd.clear();
}
void tampilkanLirik(int startBaris) {
lcd.clear();
for (int i = 0; i < 4; i++) {
if (startBaris + i < 8) {
lcd.setCursor(0, i);
lcd.print(lirik[startBaris + i]);
}
}
}
void