#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 column and 2 rows
byte customChar1[8] = {
0b00000,
0b00100,
0b00010,
0b11111,
0b00010,
0b00100,
0b00000,
0b00000
};
byte customChar2[8] = {
0b00000,
0b00100,
0b00010,
0b11111,
0b00010,
0b00100,
0b00000,
0b00000
};
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.createChar(0, customChar1); // create a new custom character
lcd.setCursor(0, 0); // move cursor to (2, 0)
lcd.write((byte)0); // print the custom char at (2, 0)
lcd.createChar(0, customChar2); // create a new custom character
lcd.setCursor(0, 1); // move cursor to (2, 0)
lcd.write((byte)0); // print the custom char at (2, 0)
}
void loop()
{
}