// #include <LiquidCrystal_I2C.h>
// LiquidCrystal_I2C lcd(0x27, 16, 2);

// void setup() {
//   // put your setup code here, to run once:
//    lcd.begin(16, 2, LCD_5x8DOTS);
// }

// void loop() {
//   // put your main code here, to run repeatedly:
//   lcd.setCursor(0, 0);
//   lcd.print("TEST LCD i2C");
//   lcd.setCursor(0, 1);
//   lcd.print("KelasRobot.com");
//   delay(1000);
//   lcd.clear();
//   delay(1000);
//   lcd.setCursor(0, 0);
//   lcd.print("KelasRobot.com");
//   delay(1000);
// }

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  lcd.begin(16, 2);
  lcd.print("Hello, World!");
  delay(1000);
}

void loop() {
  // Clear the display
  lcd.clear();

  // Shift the text to the left
  for (int i = 0; i < 16; ++i) {
    lcd.setCursor(i, 0);
    lcd.print("Hello, World!");
    delay(250);
    lcd.clear(); // Adjust the delay to control the speed of movement
  }

  delay(1000); // Pause before restarting the animation
}
$abcdeabcde151015202530fghijfghij