#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); //16x2 lcd
int cnt = 0;
void setup() {
Serial.begin(115200);
lcd.init();
lcd.backlight();
lcd.setCursor(1, 0);
lcd.print("Good athernoon");
lcd.setCursor(3, 1);
lcd.print("ACLEDA AIB");
delay(1000);
lcd.clear();
}
void loop() {
Serial.println(cnt++);
lcd.setCursor(1, 0);
lcd.print("Counter 0-1000");
lcd.setCursor(5, 1);
lcd.print(cnt++);
if (cnt > 1001) {
cnt = 0;
lcd.clear();
}
delay(100);
}