163 b_back.
text =
"Back";
169 #define SERVO_BUTTON_Y 10
170 #define SERVO_BUTTON_SPACING 5
173 b_servos_center.
base.
x1 = 55;
179 b_servos_center.
font = 0;
180 b_servos_center.
text =
"Center";
190 b_servos_topleft.
font = 0;
191 b_servos_topleft.
text =
"ToLe";
201 b_servos_topright.
font = 0;
202 b_servos_topright.
text =
"ToRi";
212 b_servos_bottomleft.
font = 0;
213 b_servos_bottomleft.
text =
"BoLe";
223 b_servos_bottomright.
font = 0;
224 b_servos_bottomright.
text =
"BoRi";
229 #define LED_COLOR_BUTTON_Y 35
230 #define LED_COLOR_BUTTON_SPACING 5
240 b_led_off.
text =
"Off";
250 b_led_white.
font = 0;
251 b_led_white.
text =
"White";
262 b_led_red.
text =
"Red";
272 b_led_green.
font = 0;
273 b_led_green.
text =
"Green";
284 b_led_blue.
text =
"Blue";
289 #define LED_POWER_BUTTON_Y 70
293 n_led_powerlimit.
x = 160;
296 n_led_powerlimit.
value = 10;
297 n_led_powerlimit.
max = 40;
298 n_led_powerlimit.
min = 0;
static void b_back_cb(void *button)
const char * text
The label of the button.
static void b_led_blue_cb(void *button)
uint16_t txtcolor
The 16-bit text color.
uint16_t x
The x-Coordinate of the Top-Left Starting Point.
uint16_t y1
Top Left Y-Coordinate of Area.
static BUTTON_STRUCT b_led_green
static void b_servos_bottomleft_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)
static void b_led_green_cb(void *button)
uint16_t x1
Top Left X-Coordinate of Area.
static void b_servos_topright_cb(void *button)
static void b_led_white_cb(void *button)
static SCREEN_STRUCT screen
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...
#define LED_COLOR_BUTTON_Y
static BUTTON_STRUCT b_servos_bottomleft
NUMUPDOWN_CALLBACK callback
Callback which is executed when the value changes.
uint16_t y2
Bottom Right Y-Coordinate of Area.
static void b_led_off_cb(void *button)
uint16_t y
The y-Coordinate of the Top-Left Starting Point.
static uint32_t led_maxcurrent
static void b_servos_topleft_cb(void *button)
int16_t max
The maximum possible value (inclusive)
SCREEN_STRUCT * get_screen_pixytest()
int pixy_command(const char *name,...)
Send a command to Pixy.
static BUTTON_STRUCT b_led_white
void tft_clear(uint16_t color)
void gui_numupdown_remove(NUMUPDOWN_STRUCT *numupdown)
uint16_t x2
Bottom Right X-Coordinate of Area.
static void b_led_red_cb(void *button)
int16_t min
The minimum possible value (inclusive)
int pixy_led_set_max_current(uint32_t current)
Set pixy LED maximum current.
static void leave(void *screen)
static BUTTON_STRUCT b_servos_topleft
static NUMUPDOWN_STRUCT n_led_powerlimit
int pixy_init()
Creates a connection with Pixy and listens for Pixy messages.
static BUTTON_STRUCT b_back
static void b_servos_bottomright_cb(void *button)
int pixy_rcs_set_position(uint8_t channel, uint16_t position)
Set pixy servo axis position.
uint16_t fgcolor
The 16-bit color of the value-text.
static void update(void *screen)
static void b_servos_center_cb(void *button)
static BUTTON_STRUCT b_led_blue
#define LED_COLOR_BUTTON_SPACING
#define SERVO_BUTTON_SPACING
static BUTTON_STRUCT b_led_red
#define LED_POWER_BUTTON_Y
static void n_led_powerlimit_cb(void *numupdown, int16_t value)
static BUTTON_STRUCT b_servos_topright
int16_t value
The current/default value.
static void enter(void *screen)
BUTTON_CALLBACK callback
Callback which is executed when the button is pressed.
static BUTTON_STRUCT b_servos_center
static BUTTON_STRUCT b_servos_bottomright
static uint32_t led_color
uint8_t font
The number of the font to use.
static BUTTON_STRUCT b_led_off
bool gui_numupdown_add(NUMUPDOWN_STRUCT *numupdown)