#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);
//7th sequence custom characters
byte AmongUs[8] = {
B01110,
B10001,
B10111,
B10111,
B10001,
B10001,
B10101,
B11011
};
byte heart[8] = {
B00000,
B00000,
B01010,
B11111,
B11111,
B11111,
B01110,
B00100
};
byte smiley[8] = {
B00000,
B00000,
B01010,
B00000,
B10001,
B10001,
B01110,
B00000
};
byte man[8] = {
B00000,
B00100,
B11111,
B11111,
B11111,
B01110,
B01010,
B01010
};
byte creature[8] = {
B00000,
B11111,
B11111,
B10101,
B10101,
B11111,
B01010,
B11011
};
byte house[8] = {
B00000,
B00000,
B00100,
B01110,
B11111,
B01110,
B01110,
B01110
};
//8th sequence custom characters
byte tongue[8] = {
B00000,
B01010,
B00000,
B11111,
B00101,
B00101,
B00010,
B00000
};
byte bell[8] = {
B00100,
B01110,
B01110,
B01110,
B01110,
B11111,
B00000,
B00100
};
byte music[8] = {
B00001,
B00011,
B00101,
B01001,
B01001,
B01011,
B11011,
B11000
};
byte down[8] = {
B01110,
B01010,
B01010,
B01010,
B11011,
B10001,
B01010,
B00100
};
byte LED[8] = {
B01110,
B11111,
B11111,
B11111,
B11111,
B01010,
B01001,
B01001
};
byte turtle[8] = {
B00000,
B00000,
B10101,
B01110,
B01110,
B01110,
B01110,
B10001
};
void setup()
{
//7-8th sequence
lcd.begin(20, 4);
lcd.createChar(0, AmongUs);
lcd.createChar(1, heart);
lcd.createChar(2, smiley);
lcd.createChar(3, man);
lcd.createChar(4, creature);
lcd.createChar(5, house);
lcd.setCursor(0,0);
lcd.write(byte(0));
lcd.setCursor(8,0);
lcd.write(byte(1));
lcd.setCursor(15,0);
lcd.write(byte(2));
lcd.setCursor(0,1);
lcd.write(byte(3));
lcd.setCursor(8,1);
lcd.write(byte(4));
lcd.setCursor(15,1);
lcd.write(byte(5));
//8th sequence
lcd.createChar(0, tongue);
lcd.createChar(1, bell);
lcd.createChar(2, music);
lcd.createChar(3, down);
lcd.createChar(4, LED);
lcd.createChar(5, turtle);
lcd.setCursor(0,2);
lcd.write(byte(0));
lcd.setCursor(8,2);
lcd.write(byte(1));
lcd.setCursor(15,2);
lcd.write(byte(2));
lcd.setCursor(0,3);
lcd.write(byte(3));
lcd.setCursor(8,3);
lcd.write(byte(4));
lcd.setCursor(15,3);
lcd.write(byte(5));
}
void loop()
{
}