diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-26 19:52:54 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-26 19:52:54 +0100 |
commit | ce235210b76332493ee5c78bded63fb5b69ff6d3 (patch) | |
tree | ea47e5c775409b88f4e5b870aa807e2c84692e7f /src/display.h | |
parent | 0e8a263587c91fe0b8bf177ec94a49c207eef4cf (diff) |
preliminary animation support
Diffstat (limited to 'src/display.h')
-rw-r--r-- | src/display.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/display.h b/src/display.h index 5c66586..8687874 100644 --- a/src/display.h +++ b/src/display.h @@ -16,8 +16,8 @@ struct __animation { uint8_t *data; }; -typedef struct __text text; -typedef struct __animation animation; +typedef struct __text text_t; +typedef struct __animation animation_t; class Display { private: @@ -28,6 +28,11 @@ class Display { uint8_t str_pos; int8_t char_pos; uint8_t data_buf[128]; + enum DisplayMode : uint8_t { + TEXT = 1, + ANIMATION = 2 + }; + DisplayMode mode; public: Display(); void enable(void); @@ -37,7 +42,8 @@ class Display { void reset(void); void update(void); - void show(text t); + void show(text_t text); + void show(animation_t anim); void show(uint8_t *str); }; |