#include <LiquidCrystal.h> // Include the LiquidCrystal library
// Constants for the number of rows and columns in the LCD
const int numRows = 2;
const int numCols = 16;
// Initialize the library with the pin numbers of the interface
LiquidCrystal lcd(12, 14, 27, 26, 25, 33);
void setup() {
lcd.begin(numCols, numRows); // Initialize the LCD with specified dimensions
lcd.print("Hello, World!"); // Print a message to the LCD
}
void loop() {
lcd.setCursor(0, 1); // Set the cursor to column 0, line 1 (second row)
lcd.print(millis() / 1000); // Print the number of seconds since the sketch started
}