#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
byte Char0 [8]{
0b00000000,
0b00110000,
0b00001100,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
};
byte Char1 [8]{
0b00000000,
0b00001111,
0b00110000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
};
byte Char2 [8]{
0b00000000,
0b00001111,
0b00110000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
};
byte Char3 [8]{
0b00000000,
0b00001111,
0b00110000,
0b00011000,
0b00000000,
0b00001100,
0b00000000,
0b00000000,
};
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
lcd.begin(16, 2);
lcd.createChar(0, Char0);
lcd.createChar(1, Char1);
lcd.createChar(2, Char2);
lcd.createChar(3, Char3);
lcd.setCursor(0, 0);
lcd.write((byte) 0);
lcd.setCursor(1, 0);
lcd.write((byte) 1);
lcd.setCursor(0, 1);
lcd.write((byte) 2);
lcd.setCursor(5, 1);
lcd.write((byte) 3);
}
void loop() {
// put your main code here, to run repeatedly:
}