80 #define BUTTON_SPACING 7
92 b_our_tracking.
font = 0;
93 b_our_tracking.
text =
"Our Tracking";
104 b_ref_tracking.
font = 0;
105 b_ref_tracking.
text =
"Ref Tracking";
110 #define Y_SECOND Y_FIRST+25
119 b_photo_mode.
font = 0;
120 b_photo_mode.
text =
"Photo Mode";
126 #define Y_THIRD Y_SECOND+25
136 b_guitest.
text =
"Gui & Tft";
148 b_pixytest.
text =
"Pixy";
160 b_filetest.
text =
"File";
const char * text
The label of the button.
uint16_t txtcolor
The 16-bit text color.
static SCREEN_STRUCT screen
void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
static void enter(void *screen)
uint16_t y1
Top Left Y-Coordinate of Area.
static void b_our_tracking_cb(void *button)
void tft_print_line(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, const char *text)
void tracking_set_mode(enum Tracking_Implementation impl)
static void leave(void *screen)
uint16_t x1
Top Left X-Coordinate of Area.
static void b_photo_mode_cb(void *button)
uint16_t bgcolor
The 16-bit background color of the button.
TOUCH_AREA_STRUCT base
Basic geometry of the button. You only need to set the x1, y1, x2, y2 members of this struct...
BUTTON_STRUCT b_photo_mode
uint16_t y2
Bottom Right Y-Coordinate of Area.
Pixy's internal tracking implementation.
SCREEN_STRUCT * get_screen_filetest()
bool tft_draw_bitmap_file_unscaled(uint16_t x, uint16_t y, const char *filename)
SCREEN_STRUCT * get_screen_pixytest()
static void update(void *screen)
SCREEN_STRUCT * get_screen_main()
void tft_clear(uint16_t color)
uint16_t x2
Bottom Right X-Coordinate of Area.
BUTTON_STRUCT b_ref_tracking
static void b_guitest_cb(void *button)
bool gui_screen_navigate(SCREEN_STRUCT *screen)
SCREEN_STRUCT * get_screen_photomode()
BUTTON_STRUCT b_our_tracking
SCREEN_STRUCT * get_screen_tracking()
static void b_pixytest_cb(void *button)
SCREEN_STRUCT * get_screen_guitest()
BUTTON_CALLBACK callback
Callback which is executed when the button is pressed.
static void b_ref_tracking_cb(void *button)
uint8_t font
The number of the font to use.
Our own tracking PID implementation.
static void b_filetest_cb(void *button)