//http://omerk.github.io/lcdchargen/
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 column and 2 rows
byte customChar0[8] = {
0b00000,
0b00000,
0b01010,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000
};
byte customChar1[8] = {
0b00000,
0b00000,
0b00100,
0b01110,
0b11111,
0b01110,
0b00100,
0b00000
};
byte customChar2[8] = {
0b00100,
0b01110,
0b11111,
0b11111,
0b01110,
0b01110,
0b01110,
0b01110
};
byte customChar3[8] = {
0B00100,
0B01110,
0B01110,
0B01110,
0B11111,
0B00000,
0B00100,
0B00000
};
byte customChar4[8] = {
0b00100,
0b01110,
0b10101,
0b00100,
0b01110,
0b10001,
0b10001,
0b01110
};
byte customChar5[8] = {
0b01110,
0b10001,
0b10001,
0b01110,
0b00100,
0b11111,
0b00100,
0b00100
};
void setup(){
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.createChar(0, customChar0);
lcd.setCursor(2, 0);
lcd.write((byte)0);
lcd.createChar(1, customChar1);
lcd.setCursor(0, 0);
lcd.write((byte)1);
lcd.createChar(2, customChar2);
lcd.setCursor(3, 0);
lcd.write((byte)2);
lcd.createChar(3, customChar3);
lcd.setCursor(1, 0);
lcd.write((byte)3);
lcd.createChar(4, customChar4);
lcd.setCursor(4, 0);
lcd.write((byte)4);
lcd.createChar(5, customChar5);
lcd.setCursor(5, 0);
lcd.write((byte)5);
}
void loop(){
// put your main code here, to run repeatedly:
}