// ##############################################################
// 16x2 I2C LCD Interface #
// ##############################################################
//
// Interfacing 16x2 I2C LCD display with Arduino Nano (Hardware & Simulation)
//
// Check out the link for Code explanation and Hardware details
// Link:
// http://tech.arunkumarn.in/blogs/arduino-nano/
//
//
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// I2C address (change if required)
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
lcd.init(); // Initialize LCD
lcd.backlight(); // Turn on backlight
lcd.setCursor(0, 0);
lcd.print("Welcome to");
lcd.setCursor(0, 1);
lcd.print("Aavishkarah");
delay(3000);
}
void loop() {
for(int i = 0; i < 10; i++) {
lcd.clear();
lcd.print(i);
delay(1500);
}
}