summary refs log tree commit diff stats
path: root/firmware/src/ui/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/ui/ui.cpp')
-rw-r--r--firmware/src/ui/ui.cpp21
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
+}
+
+}