#include <LiquidCrystal.h>
const int numRows= 2;
const int numCols= 16;
int rs = 12; //green #4
int en = 11; // blue #6
int d4 = 4; // yellow #11
int d5 = 5; //orange #12
int d6 = 6; // white #13
int d7 = 7; //blue #14
// Creates an LCD object. Parameters: (rs, en, d4, d5, d6, d7)
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup()
{
lcd.begin(numCols, numRows);
lcd.print("Hello World");
}
void loop()
{
//set the cursor to column 0, line 1
//displays the number of seconds which has elapsed since code is uploaded
lcd.setCursor(0,1);
delay(1000);
lcd.print(millis()/1000);
lcd.print(" seconds elapsed");
}