diff options
Diffstat (limited to 'firmware/src/ui')
| -rw-r--r-- | firmware/src/ui/ui.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/firmware/src/ui/ui.cpp b/firmware/src/ui/ui.cpp new file mode 100644 index 0000000..af27b37 --- /dev/null +++ b/firmware/src/ui/ui.cpp @@ -0,0 +1,21 @@ +#include "ui/ui.h" +#include "game/game_state.h" + +namespace ui { + +UI::UI(int8_t tft_cs, int8_t tft_rst, int8_t tft_dc) + : tft { tft_cs, tft_rst, tft_dc } +{ +} + +void UI::init() +{ + tft.initR(INITR_BLACKTAB); +} + +void UI::render_screen(const game::GameState& state) +{ + // TODO +} + +} |