#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
uint8_t heart[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000,
};
void setup() {
pinMode(12, OUTPUT);
lcd.init();
lcd.createChar(3, heart);
}
void loop() {
digitalWrite(12, HIGH);
delay(2000); // this speeds up the simulation
digitalWrite(12,LOW);
delay(2000);
lcd.setCursor(0,0);
lcd.print("Hello?");
lcd.setCursor(1,1);
lcd.print("Good morning \x03 ?");
delay(200);
for(int i=0;i<10;i++){
lcd.scrollDisplayLeft();
delay(200);
}
}