diff options
Diffstat (limited to 'firmware/src/screen.h')
-rw-r--r-- | firmware/src/screen.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/firmware/src/screen.h b/firmware/src/screen.h new file mode 100644 index 0000000..b210619 --- /dev/null +++ b/firmware/src/screen.h @@ -0,0 +1,34 @@ +/* + * File: screen.h + * Author: camilstaps + * + * Created on August 19, 2015, 12:01 AM + */ + +#ifndef SCREEN_H +#define SCREEN_H + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct Screen { + unsigned short rows, columns, + first_visible_row, first_visible_column, + cursor_x, cursor_y; + unsigned char** data; + void (*update)(struct Screen); +} Screen; + +Screen* newScreen(unsigned short rows, unsigned short columns, void (*update)(Screen)); +inline void freeScreen(Screen* screen); + +//void writeOnS +//void appendToScreen + +#ifdef __cplusplus +} +#endif + +#endif /* SCREEN_H */ + |