Added support for custom characters

This commit is contained in:
Lauchmelder23 2020-11-20 14:44:34 +00:00
parent 63f674dcaf
commit 6cb03a8361
4 changed files with 36 additions and 2 deletions

View file

@ -6,7 +6,13 @@ int main(void)
configurePins(&screen, 7, 9, 8, 0, 0, 0, 0, 21, 22, 23, 24);
initScreen(&screen, HALF_BYTE_INTERFACE, TWO_LINES, FONT_5x7, CURSOR_ON | CURSOR_BLINK, LEFT_TO_RIGHT);
sendText(&screen, "ゴチソウサマデシタ");
loadCustomChar(&screen, 0, 0b00000, 0b00000, 0b01010, 0b00000, 0b10001, 0b01110, 0b00000, 0b00000);
returnCursor(&screen);
sendChars(&screen, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
setCursor(&screen, 0, 1);
sendChars(&screen, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
resetPins(&screen);
return 0;