#include <LiquidCrystal_I2C.h>
#define addI2C 0x27
#define kolomLCD 16
#define garisLCD 2
LiquidCrystal_I2C lcd(addI2C, kolomLCD, garisLCD);
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
}
void loop() {
// put your main code here, to run repeatedly:
for (int pos = 0; pos < 13; pos++) {
lcd.setCursor(5, 0);
lcd.print("nama");
lcd.setCursor(5, 1);
lcd.print("Taufiq");
// scroll one position left:
lcd.scrollDisplayLeft();
// wait a bit:
delay(150);
}
}