#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
byte A[] = {B00000,B01110,B10001,B10001,B10001, B11101,B10001,B01101};
byte B[] = {B00000,B00000,B10010,B10101,B10101,B10101, B10101,B11111};
byte C[] = {B00000,B00000,B00000,B11111,B10010,B11010,B10110,B01110};
byte D[] = {B00000,B00000,B00000, B11000,B01000, B01000, B01000,B01000 };
byte E[] = {B00000,B00001,B00010,B01111,B10000, B11100,B10101,B01100};
byte F[] = {B00000, B11110,B00001,B11101,B00101,B10101,B01101, B10101 };
byte G[] = {B00000,B00000,B11111,B10100,B10100,B11111,B10101,B01110};
byte H[] ={B00000,B00000,B11111, B10100,B10100, B10100,B10100,B10100 };
void setup() {
lcd.init();
lcd.backlight();
lcd.createChar(0,A);
lcd.createChar(1,B);
lcd.createChar(2,C);
lcd.createChar(3,D);
lcd.createChar(4,E);
lcd.createChar(5,F);
lcd.createChar(6,G);
lcd.createChar(7,H);
}
void loop() {
for(int i=0;i<=7;i++){
lcd.setCursor(i,0);
lcd.write(i);
}
}