#include <LiquidCrystal_I2C.h>
// Define the LCD number of columns and rows
const int lcdColumns = 16;
const int lcdRows = 2;
// Define the LCD address, number of columns, and rows
// If you don't know your display address, run an I2C scanner sketch
LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows);
void setup() {
// Initialize the LCD
lcd.init();
// Turn on the LCD backlight
lcd.backlight();
}
void loop() {
// Loop from ASCII 'a' to ASCII 'z':
for (int thisLetter = 'a'; thisLetter <= 'z'; thisLetter++) {
// Clear the LCD screen
lcd.clear();
// Loop over the rows:
for (int thisRow = 0; thisRow < lcdRows; thisRow++) {
// Loop over the columns:
for (int thisCol = 0; thisCol < lcdColumns; thisCol++) {
// Set the cursor position
lcd.setCursor(thisCol, thisRow);
// Print the letter
lcd.write(thisLetter);
delay(200);
}
}
}
}