#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // RS, E, D4, D5, D6, D7
byte customChara[] = {
B11111,
B10101,
B11111,
B01100,
B01010,
B01100,
B01110,
B11111,
};
byte customCharp[] = {
B11111,
B10001,
B10001,
B10001,
B11111,
B10000,
B10000,
B10000,
};
byte customCharn[] = {
B00001,
B10001,
B11001,
B10101,
B10011,
B10001,
B10000,
B10000,
};
byte customChart[] = {
B11111,
B11111,
B00100,
B00100,
B00100,
B00100,
B00100,
B00100
};
byte customCharr[] = {
B11110,
B10010,
B10010,
B11110,
B11000,
B10100,
B10010,
B10001,
};
byte customCharb[] = {
B01110,
B10001,
B10001,
B10001,
B10001,
B10001,
B10001,
B01110,
};
byte customCharf[] = {
B11111,
B10001,
B10010,
B11100,
B10010,
B10001,
B10001,
B11111,
};
byte customCharo[] = {
B01110,
B10001,
B10001,
B10001,
B10001,
B10001,
B10001,
B01110,
};
byte customChare[] = {
B11111,
B11111,
B00100,
B00100,
B00100,
B00100,
B00100,
B00100
};
void setup() {
int a = 0;
int p = 1;
int n = 2;
int t = 3;
int r = 4;
int b = 5;
int f = 6;
int o = 7;
int e = 9;
lcd.begin(16,2);
lcd.createChar(0, customChara);
lcd.setCursor(0,0);
lcd.write(a);
lcd.createChar(1, customCharp);
lcd.setCursor(1,0);
lcd.write(p);
lcd.createChar(2, customCharn);
lcd.setCursor(2,0);
lcd.write(n);
lcd.createChar(3, customChart);
lcd.setCursor(3,0);
lcd.write(t);
lcd.createChar(4, customCharr);
lcd.setCursor(1,1);
lcd.write(r);
lcd.createChar(5, customCharb);
lcd.setCursor(2,1);
lcd.write(b);
lcd.createChar(6, customCharf);
lcd.setCursor(3,1);
lcd.write(f);
lcd.createChar(7, customCharo);
lcd.setCursor(4,1);
lcd.write(o);
// lcd.createChar(9, customChare);
// lcd.setCursor(5,1);
// lcd.write(e);
}
void loop() { }