From e37b3eacefef04258a6dc6e8714da249d2ff9c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C5=ABnas=20Ma=C5=BEeikis?= Date: Mon, 27 May 2019 15:44:38 +0300 Subject: Screen: More implementation details. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only a single function is a stub now --- the actual drawing. Signed-off-by: Ramūnas Mažeikis --- src/device/screen.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/device/screen.h') 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 +#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 -- cgit v1.2.3