summary refs log tree commit diff stats
path: root/firmware/include/ui/ui.h
blob: 44b4555c376454d15e88ea981a9d92d3d4b2b907 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
};

}