#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // Alamat I2C dan ukuran LCD
String text = "Selamat datang di unisla!"; // Teks yang berjalan
int pos = 0;
void setup() {
lcd.begin(16, 2);
lcd.setBacklight(1);
}
void loop() {
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(text.substring(pos) + text.substring(0, pos)); // Menampilkan teks yang bergeser
pos = (pos + 1) % text.length(); // Geser posisi dan reset jika sudah mencapai akhir
delay(300); // Delay untuk kecepatan teks
}