48 #define RGB(r,g,b) ((((r) & 0xF8) << 8) | (((g) & 0xFC) << 3) | (((b) & 0xF8) >> 3))
50 #define RED RGB(255,0,0)
51 #define GREEN RGB(0,255,0)
52 #define BLUE RGB(0,0,255)
54 #define BLACK RGB(0,0,0)
60 #define HEX(h) (RGB(((h)>>16),((h)>>8),(h)))
66 #define TRANSPARENT ((uint16_t)0x80C2)
89 void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
108 void tft_draw_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
118 void tft_fill_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
150 void tft_draw_circle(uint16_t x, uint16_t y, uint16_t r, uint16_t color);
181 void tft_print_line(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font,
const char* text);
193 void tft_print_formatted(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font,
const char* format, ...);
uint8_t tft_font_height(uint8_t fontnum)
uint8_t tft_font_width(uint8_t fontnum)
void tft_draw_circle(uint16_t x, uint16_t y, uint16_t r, uint16_t color)
void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
void tft_print_formatted(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, const char *format,...)
void tft_print_line(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, const char *text)
void tft_draw_bitmap_unscaled(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint16_t *dat)
void tft_draw_pixel(uint16_t x, uint16_t y, uint16_t color)
bool tft_draw_bitmap_file_unscaled(uint16_t x, uint16_t y, const char *filename)
void tft_clear(uint16_t color)
void tft_fill_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
void tft_draw_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)