#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 column and 2 rows
void setup() {
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.print("Arduino Sketch");
}
void loop() {
for(int positionCounter = 0; positionCounter < 29; positionCounter++){
lcd.scrollDisplayLeft();
delay(150);
}
for(int positionCounter = 0; positionCounter < 29; positionCounter++){
lcd.scrollDisplayRight();
delay(150);
}
for(int positionCounter = 0; positionCounter < 16; positionCounter++){
lcd.scrollDisplayLeft();
delay(150);
}
delay(1000);
}