#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
byte custom1[] = {
B10101,
B01010,
B10101,
B01010,
B10101,
B01010,
B10101,
B01010
};
byte custom2[] = {
B00000,
B00000,
B11111,
B01010,
B01010,
B11010,
B00000,
B00000
};
byte custom3[] = {
B10000,
B01000,
B00100,
B00011,
B00011,
B00100,
B01000,
B10000
};
byte custom4[] = {
B01010,
B11111,
B11011,
B01110,
B01010,
B11111,
B11011,
B01110
};
byte custom5[] = {
B11111,
B00001,
B11111,
B10000,
B11111,
B00001,
B11111,
B10000
};
void setup() {
lcd.init();
lcd.backlight();
lcd.createChar(0, custom1);
lcd.createChar(1, custom2);
lcd.createChar(2, custom3);
lcd.createChar(3, custom4);
lcd.createChar(4, custom5);
lcd.setCursor(0,0);
lcd.write(0);
lcd.write(1);
lcd.write(2);
lcd.write(3);
lcd.write(4);
}
void loop() {
}