/* Test II2C 1602 Display for Character Storage Beyond Characters Displayed Written August 6, 2020 Programmer: R Jordan Keindler */ #include LiquidCrystal_I2C lcd(0x27, 16, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display int delay1 = 1000; void setup() { lcd.init(); // initialize the lcd lcd.backlight(); // Turn backlight On } void loop() { lcd.clear(); lcd.setCursor(0, 0); // Set cursor at position zero(0) on first line of 1602 LCD // There are 24 character positions on my LCD beyond those characters displayed lcd.print("This is 1st Lineabcdefghijklmnopqrstuvwx"); // Test first line of LCD for extra storage lcd.setCursor(0, 1); // Set cursor at position zero (0) on second line of 1602 LCD lcd.print("This is 2nd Line123456789112345678921234"); // Test second line of LCD for extra storage delay(delay1); for (int i = 0; i <= 23; i++) { lcd.scrollDisplayLeft(); delay(delay1); } }