summary refs log tree commit diff stats
path: root/firmware/include/ui/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/ui/ui.h')
-rw-r--r--firmware/include/ui/ui.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/firmware/include/ui/ui.h b/firmware/include/ui/ui.h
new file mode 100644
index 0000000..44b4555
--- /dev/null
+++ b/firmware/include/ui/ui.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <Adafruit_ST7735.h>
+#include <stdint.h>
+
+#include "game/game_state.h"
+
+namespace ui {
+
+class UI {
+public:
+    UI(int8_t tft_cs, int8_t tft_rst, int8_t tft_dc);
+
+    void init();
+
+    void render_screen(const game::GameState& state);
+
+private:
+    Adafruit_ST7735 tft;
+};
+
+}