summaryrefslogtreecommitdiffstats
path: root/src/device/screen.h
diff options
context:
space:
mode:
authorGravatar Ramūnas Mažeikis <ramunasnezinomas@gmail.com> 2019-05-27 15:44:38 +0300
committerGravatar Ramūnas Mažeikis <ramunasnezinomas@gmail.com> 2019-05-27 15:44:38 +0300
commite37b3eacefef04258a6dc6e8714da249d2ff9c1d (patch)
tree53367df66a33f88015da5926e4f15b9867681da8 /src/device/screen.h
parent755680ca7246b232c45e3b519e9d8a95ea97375f (diff)
downloadusurpation-e37b3eacefef04258a6dc6e8714da249d2ff9c1d.tar.gz
usurpation-e37b3eacefef04258a6dc6e8714da249d2ff9c1d.tar.bz2
usurpation-e37b3eacefef04258a6dc6e8714da249d2ff9c1d.zip
Screen: More implementation details.
Only a single function is a stub now --- the actual drawing. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
Diffstat (limited to 'src/device/screen.h')
-rwxr-xr-xsrc/device/screen.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/device/screen.h b/src/device/screen.h
index ec30cd5..7763bd2 100755
--- a/src/device/screen.h
+++ b/src/device/screen.h
@@ -3,6 +3,10 @@
#include <time.h>
+#define SCREEN_WIDTH (64)
+#define FONT_WIDTH (8)
+#define SCREEN_MAX_CHARS (SCREEN_WIDTH / FONT_WIDTH)
+
/**
* Struct that keeps track of the lines on the screen.
*/
@@ -16,7 +20,11 @@ struct display_status {
size_t line_cursor; /* Index of the first line being displayed. */
};
+/**
+ * Displays scrolling text on the screen.
+ */
void display_update_scroll(struct display_status *status);
+
void display_status_init(struct display_status *status, char *msg);
#endif /* DEVICE_SCREEN_H */ \ No newline at end of file