#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
// Adjust the address (0x27) and dimensions (16,2) if needed
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// Initialize the LCD
lcd.init();
// Turn on the backlight
lcd.backlight();
// Set the cursor to column 2, line 0 (0-indexed)
lcd.setCursor(2, 0);
// Print a message to the LCD.
lcd.print("Hello world!");
// Set the cursor to column 2, line 1
lcd.setCursor(2, 1);
lcd.print("LCD Tutorial");
}
void loop() {
// The loop is empty for this basic example, as the text only needs to be printed once.
}
Loading
mfrc522
mfrc522