// Import the LiquidCrystal library
#include <LiquidCrystal.h>
// Define the LCD pins
const int lcdRS = 12;
const int lcdE = 11;
const int lcdD4 = 5;
const int lcdD5 = 4;
const int lcdD6 = 3;
const int lcdD7 = 2;
// Create an LCD object
LiquidCrystal lcd(lcdRS, lcdE, lcdD4, lcdD5, lcdD6, lcdD7);
void setup() {
// Initialize the LCD
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print("Hello, World!");
}
void loop() {
// Update the LCD every second
delay(1000);
lcd.setCursor(0, 1);
lcd.print("Arduino is fun!");
}