//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
// Heart
uint8_t heart[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000,
};
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(1,0);
lcd.print("Hii I am AJ");
delay(1000);
}
void loop()
{
for(int i =0;i<=20;i++){
lcd.setCursor(0,0);
lcd.print("I \x03 Electroboffin");
lcd.createChar(3, heart);
lcd.scrollDisplayRight();
delay(100);
}
lcd.backlight();
for(int i=0 ;i<=20;i++){
lcd.setCursor(0,0);
lcd.print("I \x03 Electroboffin");
lcd.createChar(3, heart);
lcd.scrollDisplayRight();
delay(100);
}
lcd.noBacklight();
}