#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
byte horse []=
{
B00000,
B00000,
B00000,
B00000,
B00011,
B00111,
B01110,
B01110
};
byte horse2 []=
{
B10011,
B10011,
B00010,
B00010,
B00100,
B00000,
B00000,
B00000
};
byte horse3 []=
{
B00000,
B00000,
B00000,
B00000,
B01111,
B11111,
B11111,
B11111
};
byte horse4 []=
{
B11111,
B00111,
B01110,
B00110,
B00001,
B00000,
B00000,
B00000
};
byte horse5 []=
{
B00000,
B00000,
B00000,
B00011,
B00111,
B11111,
B11111,
B11111
};
byte horse6[]=
{
B10100,
B11100,
B11010,
B11010,
B11111,
B11111,
B10011,
B10000
};
byte horse7[]=
{
B01111,
B00011,
B00011,
B00001,
B00001,
B00000,
B00000,
B00000
};
byte horse8 []=
{
B10000,
B11000,
B01100,
B00010,
B00010,
B10001,
B00000,
B00000
};
byte horse9 [] =
{
B00000,
B00000,
B00000,
B00111,
B01111,
B01110,
B01110,
B01110
};
byte horseA[] =
{
B01100,
B11000,
B10000,
B00000,
B00000,
B00001,
B00001,
B00001
};
byte horseB[]=
{
B00000,
B00000,
B00000,
B00000,
B01111,
B11111,
B11111,
B11111
};
byte horseC[]=
{
B11111,
B11111,
B11110,
B10111,
B00000,
B00000,
B10000,
B00000
};
byte horseD[] =
{
B00000,
B00000,
B00000,
B00011,
B00111,
B11111,
B11111,
B11111
};
byte horseE[]=
{
B00000,
B00000,
B00101,
B11111,
B11101,
B11111,
B10110,
B00110
};
byte horseF[]=
{
B01100,
B11000,
B10000,
B00000,
B00001,
B00001,
B00001,
B00000
};
byte horseG[]=
{
B11111,
B11111,
B11110,
B10111,
B00000,
B00000,
B10000,
B00000
};
byte horseH[]=
{
B11111,
B11111,
B00011,
B00010,
B10100,
B00100,
B00010,
B00000
};
byte horseI[]=
{
B11100,
B11100,
B00100,
B00100,
B01000,
B00000,
B00000,
B00000
};
void setup()
{
lcd.init();
lcd.backlight();
lcd.clear();
}
void loop()
{
lcd.createChar(0,horse);
lcd.createChar(1,horse2);
lcd.createChar(2,horse3);
lcd.createChar(3,horse4);
lcd.createChar(4,horse5);
lcd.createChar(5,horse6);
lcd.createChar(6,horse7);
lcd.createChar(7,horse8);
lcd.setCursor(1,0);
lcd.write(0);
lcd.setCursor(1,1);
lcd.write(1);
lcd.setCursor(2,0);
lcd.write(2);
lcd.setCursor(2,1);
lcd.write(3);
lcd.setCursor(3,0);
lcd.write(4);
lcd.setCursor(4,0);
lcd.write(5);
lcd.setCursor(3,1);
lcd.write(6);
lcd.setCursor(4,1);
lcd.write(7);
lcd.createChar(0,horse9);
lcd.createChar(1,horseA);
lcd.createChar(2,horseB);
lcd.createChar(3,horseC);
lcd.createChar(4,horseD);
lcd.createChar(5,horseE);
lcd.createChar(6,horseF);
lcd.createChar(7,horseH);
//lcd.createChar(13,horseI);
lcd.setCursor(1,0);
lcd.write(0);
lcd.setCursor(1,1);
lcd.write(1);
lcd.setCursor(2,0);
lcd.write(2);
lcd.setCursor(2,1);
lcd.write(3);
lcd.setCursor(3,0);
lcd.write(4);
lcd.setCursor(4,0);
lcd.write(5);
lcd.setCursor(3,1);
lcd.write(6);
lcd.setCursor(4,1);
lcd.write(7);
}