void testfillcircles(uint8_t radius, uint16_t color) { for (int16_t x=radius; x < tft.width(); x+=radius*2) { for (int16_t y=radius; y < tft.height(); y+=radius*2) { tft.fillCircle(x, y, radius, color); } } }
void draw_cursor() { // the current position of the cursor on the screen, if visible uint16_t cursor_screen_x; uint16_t cursor_screen_y; if (get_cursor_screen_x_y(&cursor_screen_x, &cursor_screen_y)) { cursor_screen_x = cursor_map_x - screen_map_x; cursor_screen_y = cursor_map_y - screen_map_y; tft.fillCircle(cursor_screen_x, cursor_screen_y, dot_radius, RED); } }