/*
Basic Parallel LCD Demo
Shows basic wiring and writing to a parallel
LCD module using only "analog" pins.
1/20/26
*/
// include the library for a parallel LCD
#include <LiquidCrystal.h>
// pin constants for the LCD
const int RS = A5, EN = A4, D4 = A3, D5 = A2, D6 = A1, D7 = A0;
// create an LCD object called "lcd"
LiquidCrystal lcd(RS, EN, D4, D5, D6, D7);
void setup() {
// start serial
Serial.begin(9600);
// start LCD
lcd.begin(16, 2);
// print a message on the LCD
lcd.setCursor(2, 0);
lcd.print("Parallel LCD");
lcd.setCursor(1, 1);
lcd.print("Uses 6 uC pins");
}
void loop() {
// nothing to loop about...
}