#include <LiquidCrystal.h>
// Pin mapping to the LCD
const int rs = 12;
const int en = 11;
const int d4 = 5;
const int d5 = 4;
const int d6 = 3;
const int d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// Initialize the LCD with its respective columns and rows
lcd.begin(16, 2);
// Print a message to the LCD
lcd.print("Hello, Arduino!");
}
void loop() {
// Set the cursor to the start of the second line
lcd.setCursor(0, 1);
// Print the current time (example)
lcd.print("Time: ");
lcd.print(millis() / 1000); // Display seconds since program start
delay(1000); // Wait for 1 second before updating the display
}