Enable buttons and the display.

Kind-of-sort-of usable-ish.
This commit is contained in:
2019-06-06 22:30:27 -07:00
parent 1cc2f7adf4
commit 125ddfb687
19 changed files with 937 additions and 196 deletions

View File

@@ -42,10 +42,11 @@ public:
/**
* DisplayDriver
*/
void set_bit(unsigned int x, unsigned int y, uint8_t val);
void set_byte(unsigned int x, unsigned int y, uint8_t val);
void char_at(int *x_off, int y_off, char c, const struct font *font);
void string_at(int x_off, int y_off, const char *string, const struct font *font);
void set_bit(uint32_t x, uint32_t y, uint8_t val);
void set_byte(uint32_t x, uint32_t y, uint8_t val);
void char_at(uint32_t *x_off, uint32_t y_off, char c, const struct font *font);
void string_at(uint32_t *x_off, uint32_t y_off,
const char *string, const struct font *font);
void refresh();
void clear();
@@ -61,10 +62,14 @@ private:
void buffer_init();
void set_dirty(unsigned int y);
const struct glyph *glyph_for_char(const struct font *font, char c);
void clear_glyph_aligned(int x_off, int y_off, const struct font * font, const struct glyph *g);
void clear_glyph_unaligned(int x_off, int y_off, const struct font * font, const struct glyph *g);
void write_glyph_aligned(int x_off, int y_off, const struct font * font, const struct glyph *g);
void write_glyph_unaligned(int x_off, int y_off, const struct font * font, const struct glyph *g);
void clear_glyph_aligned(uint32_t x_off, uint32_t y_off,
const struct font * font, const struct glyph *g);
void clear_glyph_unaligned(uint32_t x_off, uint32_t y_off,
const struct font * font, const struct glyph *g);
void write_glyph_aligned(uint32_t x_off, uint32_t y_off,
const struct font * font, const struct glyph *g);
void write_glyph_unaligned(uint32_t x_off, uint32_t y_off,
const struct font * font, const struct glyph *g);
static constexpr uint32_t DISPLAY_WIDTH = 144;
static constexpr uint32_t DISPLAY_HEIGHT = 168;