Second Counter using Arduino Uno R3 and LM016L LCD

Arduino Program

#include <LiquidCrystal.h>

/* LiquidCrystal(RS, EN, D4, D5, D6, D7)*/
 LiquidCrystal lcd(12, 13, 8, 9, 10, 11);

int a=0;
 void setup()

{
 /*following function sets up the LCD columns and rows:*/
 lcd.begin(16, 2);
 }

void loop()

{
 lcd.setCursor(0,0); // set the cursor position
 lcd.print("Seconds Counter"); //print the string on cursor position

while(1)

{
 lcd.setCursor(1,1);
 a++;
 delay(1300);
 lcd.print(a);
 }

}

 

Proteus Simulation