#include <LiquidCrystal.h>
// Define a custom smiley face character
byte smiley[8] = {
B00000,
B01010,
B01010,
B00000,
B10001,
B01110,
B00000,
B00000
};
// LCD pins: RS, E, D4, D5, D6, D7
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// Initialize LCD with 16 columns and 2 rows
lcd.begin(16, 2);
// Create the smiley face character
lcd.createChar(0, smiley);
// Display messages
lcd.setCursor(0, 0);
lcd.print("Look at this!");
// Display the smiley face
lcd.setCursor(0, 1);
lcd.write(byte(0)); // Show custom smiley character
}
void loop() {
// Animation or dynamic display logic can go here
}