#include <Wire.h>
#include<LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27
#define TOTAL_ROWS 4
#define TOTAL_COLUMNS 20
LiquidCrystal_I2C lcd(I2C_ADDR, TOTAL_COLUMNS, TOTAL_ROWS);
void setup()
{
lcd.init();
lcd.backlight();
}
void loop()
{
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Lets Count 0-20!");
delay(2000);
lcd.clear();
for (int i=0; i<=20; i++)
{
lcd.setCursor(0,0);
lcd.print(i);
delay(1000);
lcd.clear();
}
lcd.clear();
lcd.setCursor(0,1);
lcd.print("KIRAN KUMAR");
delay(2000);
lcd.clear();
lcd.setCursor(0,2);
lcd.print("Lets Count 20-25!");
delay(2000);
lcd.clear();
{
for (int i=20; i<=25; i++){
lcd.setCursor(0,2);
lcd.print(i);
delay(1000);
lcd.clear();
}
lcd.clear();
lcd.setCursor(0,3);
lcd.print("HELLO KLU");
delay(2000);
}
}