#include <LiquidCrystal.h>
const int rs=15,en=4,d4=13,d5=12,d6=14,d7=27;
LiquidCrystal Lcd(rs,en,d4,d5,d6,d7);
int i=0;
void setup() {
// put your setup code here, to run once:
Lcd.begin(16,2);
Lcd.setCursor(0,0);
Lcd.print("counter:");
}
void loop() {
// put your main code here, to run repeatedly:
i++;
delay(1000);
Lcd.setCursor(8,0);
Lcd.print(i);
if(i==10)
{
i=0;
delay(1000);
Lcd.setCursor(8,0);
Lcd.print(" ");
}
// this speeds up the simulation
}