/*
Project: I2C LCD Demo
Description: Basic connections and setup for
I2c LCD displays.
Creation date: 12/2/25
Author: AnonEngineering
*/
// include library for I2C LCD
#include <LiquidCrystal_I2C.h>
// create I2C LCD object
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// start serial
Serial.begin(115200);
// start I2C LCD
lcd.init();
// turn on the I2C LCD backlight
lcd.backlight();
// start up message on I2C LCD
lcd.setCursor(2, 0);
lcd.print("16x2 I2C LCD");
lcd.setCursor(1, 1);
lcd.print("Uses 2 uC pins");
}
void loop() {
// nothing to loop about...
}