#include <LiquidCrystal.h>
// Define the LCD connections
LiquidCrystal lcd(12, 11, 5, 6, 7, 8);
void setup() {
// Set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("Hello, world");
}
void loop() {
// Set the cursor to column 0, line 1 (the second line)
lcd.setCursor(0, 1);
// Print the number of seconds since the Arduino was reset:
lcd.print(millis() / 1000);
delay(1000); // Update every second
}