optimize sending custom chars, one write operation now

This commit is contained in:
2026-06-14 11:55:14 +02:00
parent 8bea9be551
commit 804e477d50
2 changed files with 11 additions and 4 deletions

View File

@@ -10,7 +10,8 @@
struct lcd_t {
int fd;
uint32_t baud;
char writebuf[LCD_LINES * LCD_COLS + 8];
char ccharbuf[8][11]; // 8 custom chars, each 11 bytes (3 byte command + 8 byte glyph)
char writebuf[LCD_LINES * LCD_COLS + 8]; // number of chars on the lcd + 2*4 byte set cursor commands
char port[96];
};