optimize sending custom chars, one write operation now
This commit is contained in:
@@ -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];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user