169 #define SERVO_BUTTON_Y 10
170 #define SERVO_BUTTON_SPACING 5
229 #define LED_COLOR_BUTTON_Y 35
230 #define LED_COLOR_BUTTON_SPACING 5
289 #define LED_POWER_BUTTON_Y 70
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)
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 void b_servos_topleft_cb(void *button)
int16_t max
The maximum possible value (inclusive)
static BUTTON_STRUCT b_led_white
void tft_clear(uint16_t color)
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)
static BUTTON_STRUCT b_servos_topleft
static NUMUPDOWN_STRUCT n_led_powerlimit
static BUTTON_STRUCT b_back
static void b_servos_bottomright_cb(void *button)
uint16_t fgcolor
The 16-bit color of the value-text.
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.
BUTTON_CALLBACK callback
Callback which is executed when the button is pressed.
static BUTTON_STRUCT b_servos_center
static BUTTON_STRUCT b_servos_bottomright
uint8_t font
The number of the font to use.
static BUTTON_STRUCT b_led_off
bool gui_numupdown_add(NUMUPDOWN_STRUCT *numupdown)