aboutsummaryrefslogtreecommitdiff
path: root/include/lcdlib.c
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-22 13:36:32 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commite6a5b63bbeb36ff9d9d5f2c002395012a0d41fdf (patch)
tree36419c24a19ea6a7ec511cd67a54d9229d67ae1c /include/lcdlib.c
parent703c875144bb365e6448b41493aa0d6615e10520 (diff)
Trying caching to speed things up
Diffstat (limited to 'include/lcdlib.c')
-rw-r--r--include/lcdlib.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/lcdlib.c b/include/lcdlib.c
index ea47062..0933b2c 100644
--- a/include/lcdlib.c
+++ b/include/lcdlib.c
@@ -1,15 +1,10 @@
#include "lcdlib.h"
-// ===================================================================
-// Globals
-// ===================================================================
-
static char previous_lines[LCD_HEIGHT][LCD_WIDTH+1];
+static const char* esc = "\x1B[L";
static FILE *lcd = NULL;
static int line_idx;
-static const char* esc = "\x1B[L";
-
int
lcd_begin(void) {
lcd = fopen("/dev/lcd", "w");