summaryrefslogtreecommitdiff
path: root/firmware/src/screen.h
diff options
context:
space:
mode:
authorCamil Staps2015-08-20 22:37:23 +0200
committerCamil Staps2015-08-20 22:46:47 +0200
commit3056e083d78b6edec6bab1ebac3fa9e3708644d7 (patch)
tree80dd8334e7a598d4d5080778ed5dcf3b5769392e /firmware/src/screen.h
Initial commit
Diffstat (limited to 'firmware/src/screen.h')
-rw-r--r--firmware/src/screen.h34
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 */
+