diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-21 20:46:28 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-21 21:26:38 -0500 |
| commit | a0146c67b0c5efef4729ea8ceb45dc9008ca1560 (patch) | |
| tree | 38518e28192a113dee1ef4821247a0a2ca3c8cc1 /include/lcdlib.h | |
| parent | 426a0bfc107b354eb45b9c067e63cbe554c7e023 (diff) | |
Starting work on LCD library
Diffstat (limited to 'include/lcdlib.h')
| -rw-r--r-- | include/lcdlib.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/lcdlib.h b/include/lcdlib.h new file mode 100644 index 0000000..fd28a0e --- /dev/null +++ b/include/lcdlib.h @@ -0,0 +1,19 @@ +#include <stdlib.h> +#include <stdarg.h> +#include <stdio.h> +#include <string.h> + +#define LCD_WIDTH 16 +#define LCD_HEIGHT 2 + +enum LCD_WRITE_MODE { L_OVERWRITE, L_SCROLL }; + +int lcd_begin(void); +void lcd_end(void); +void lcd_clear(void); + +void lcd_put_line(const enum LCD_WRITE_MODE mode, + const char *line); + +void lcd_printf_line(const enum LCD_WRITE_MODE mode, + const char *format, ...); |
