Hello,
I have a problem with my 20*4 LCD display and my custom characters. I want to have a big I on my LCD display, to do that I tried this with customChar. Only now there is a problem, as can be seen in the picture, the first character is now the wrong way round,
but what can't be because it's different in the code, how can you fix it so that the characters are all displayed correctly?
void Test()
{
byte CustChar1[] = {
B11111,
B11111,
B11111,
B11111,
B00000,
B00000,
B00000,
B00000
};
byte CustChar2[] = {
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte CustChar3[] = {
B11111,
B11111,
B11111,
B11111,
B00000,
B00000,
B00000,
B00000
};
byte CustChar4[] = {
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
};
byte CustChar5[] = {
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte CustChar6[] = {
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
};
byte CustChar7[] = {
B00000,
B00000,
B00000,
B00000,
B11111,
B11111,
B11111,
B11111
};
byte CustChar8[] = {
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte CustChar9[] = {
B00000,
B00000,
B00000,
B00000,
B11111,
B11111,
B11111,
B11111
};
lcd.createChar(0, CustChar1);
lcd.createChar(1, CustChar2);
lcd.createChar(2, CustChar3);
lcd.createChar(3, CustChar4);
lcd.createChar(4, CustChar5);
lcd.createChar(5, CustChar6);
lcd.createChar(6, CustChar7);
lcd.createChar(7, CustChar8);
lcd.createChar(8, CustChar9);
for (int i = 0; i < 3; ++i)
{
lcd.setCursor(i + 0, 0);
lcd.write(i);
lcd.setCursor(i + 0, 1);
lcd.write(i + 3);
lcd.setCursor(i + 0, 2);
lcd.write(i + 3);
lcd.setCursor(i + 0, 3);
lcd.write(i + 6);
delay(150);
}
}