//whenever led is on display a mssg "ON" in LCD & when off display "OFF" in LCD\
//row1-mssg (display simple mssg) row2-counting whenever led is on(increment part)
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(19, 23, 13, 12, 14, 15);
// rs,en,d4,d5,d6,d7
void setup() {
pinMode(25, OUTPUT);
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
}
void loop() {
digitalWrite(25, HIGH);
lcd.print("ON"); // turn the LED on (HIGH is the voltage level)
delay(1000);
digitalWrite(25, LOW);
lcd.print("OFF"); // turn the LED on (HIGH is the voltage level)
delay(1000);
lcd.scrollDisplayLeft();
lcd.setCursor(0,1);
}