#ifndef TTY_H #define TTY_H #include <tft.h> #define TTY_WIDTH (TFT_WIDTH / 8) #define TTY_HEIGHT (TFT_HEIGHT / 8) void addch(char c); void addstr(const char *str); void setcur(u16 ncol, u16 nrow); void swap_colors(void); static inline void mvaddch(int y, int x, char c) { setcur(x, y); addch(c); } static inline void mvaddstr(int y, int x, const char *str) { setcur(x, y); addstr(str); } #endif // TTY_H