#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
Serial.begin(9600); // Initialize serial communications
lcd.begin(16,2);
lcd.backlight();
lcd.setCursor(0, 0);
printCen("S5 EEE");
lcd.setCursor(0, 1);
printCen("Place ID Card");
}
void loop() {
// Your loop code (if needed)
}
void printCen(String text) {
if (text.length() > 16) {
text = text.substring(0, 16); // Truncate text to fit the display
}
int spaces = (16 - text.length()) / 2;
for (int i = 0; i < spaces; i++) {
lcd.print(" ");
}
lcd.print(text);
}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
lcd1:GND
lcd1:VCC
lcd1:SDA
lcd1:SCL