#include #include #include #include #include struct __text { uint8_t speed_delay; uint8_t direction_reserved; uint8_t *str; }; struct __animation { uint8_t speed; uint8_t delay; uint8_t *data; }; typedef struct __text text; typedef struct __animation animation; class Display { private: uint16_t update_delay; uint8_t need_update; uint8_t active_col; uint8_t disp_buf[8]; uint8_t str_pos; int8_t char_pos; uint8_t data_buf[128]; public: Display(); void enable(void); void disable(void); void multiplex(void); void reset(void); void update(void); void show(text t); void show(uint8_t *str); }; extern Display display;