#include <LiquidCrystal.h>
// Define LCD Pins
#define RS 2
#define E 3
#define D4 4
#define D5 5
#define D6 6
#define D7 7
// Initialize the LiquidCrystal library with the pins
LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
void setup() {
// Initialize the LCD and specify the dimensions
lcd.begin(16, 2); // 16 columns, 2 rows
// Clear the screen and display a welcome message
lcd.clear();
lcd.print("Hello, World!");
// Move to the second line and print more text
lcd.setCursor(0, 1); // Column 0, Row 1
lcd.print("Arduino LCD!");
}
void loop() {
// Add additional functionality here if needed
delay(1000); // Keep the program running
}