// include the library code:
#include <LiquidCrystal.h>
// initialize the LCD library based on the schematic pin connection
const int rs = 11, en = 12, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// Specify the LCD's number of columns and rows. Change to (20, 4) for a 20x4 LCD:
lcd.begin(16, 2);
// Print a message to the LCD.
// The cursor is already at the beginning of the first row
lcd.print("Arduino Tutorial");
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
lcd.print("ECE MF");
}
void loop() {
// set the cursor to column 13, line 1
// where column 13 is one space after ECE NCE NJIT
// where line 1 is the second row, since counting begins with 0:
lcd.setCursor(10, 1);
// print the number of seconds since reset:
lcd.print(millis() / 1000);
}