#include <LiquidCrystal_I2C.h>
//#define I2C_ADDR 0x27
//#define LCD_COLUMNS 20
//#define LCD_LINES 4
//LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// Init
lcd.init();
lcd.backlight();
}
void loop() {
for (int col =0; col <=16; col++) {
lcd.clear();
lcd.setCursor(col, 0);
lcd.print("Hello");
delay(200);
}
for (int col =16; col >=0; col--) {
lcd.clear();
lcd.setCursor(col, 1);
lcd.print("Hello");
delay(200);
}
}