discoverpixy
Macros | Enumerations | Functions | Variables
screen_pixytest.c File Reference
#include "screen_pixytest.h"
#include "button.h"
#include "numupdown.h"
#include "tft.h"
#include "touch.h"
#include "pixy.h"
#include "system.h"
#include "pixy_frame.h"
Include dependency graph for screen_pixytest.c:

Macros

#define SERVO_BUTTON_Y   10
 
#define SERVO_BUTTON_SPACING   5
 
#define LED_COLOR_BUTTON_Y   35
 
#define LED_COLOR_BUTTON_SPACING   5
 
#define LED_POWER_BUTTON_Y   70
 

Enumerations

enum  {
  detecting, idle, update_servos, update_ledcolor,
  update_ledcurrent
}
 

Functions

static void b_back_cb (void *button)
 
static void b_servos_center_cb (void *button)
 
static void b_servos_topleft_cb (void *button)
 
static void b_servos_topright_cb (void *button)
 
static void b_servos_bottomleft_cb (void *button)
 
static void b_servos_bottomright_cb (void *button)
 
static void b_led_off_cb (void *button)
 
static void b_led_white_cb (void *button)
 
static void b_led_red_cb (void *button)
 
static void b_led_green_cb (void *button)
 
static void b_led_blue_cb (void *button)
 
static void n_led_powerlimit_cb (void *numupdown, int16_t value)
 
static void enter (void *screen)
 
static void leave (void *screen)
 
static void update (void *screen)
 
SCREEN_STRUCTget_screen_pixytest ()
 

Variables

static enum { ... }  state
 
static BUTTON_STRUCT b_back
 
static BUTTON_STRUCT b_servos_center
 
static BUTTON_STRUCT b_servos_topleft
 
static BUTTON_STRUCT b_servos_topright
 
static BUTTON_STRUCT b_servos_bottomleft
 
static BUTTON_STRUCT b_servos_bottomright
 
static uint16_t servo_x
 
static uint16_t servo_y
 
static BUTTON_STRUCT b_led_off
 
static BUTTON_STRUCT b_led_white
 
static BUTTON_STRUCT b_led_red
 
static BUTTON_STRUCT b_led_green
 
static BUTTON_STRUCT b_led_blue
 
static uint32_t led_color
 
static uint32_t led_maxcurrent
 
static NUMUPDOWN_STRUCT n_led_powerlimit
 
static SCREEN_STRUCT screen
 

Macro Definition Documentation

#define LED_COLOR_BUTTON_SPACING   5
#define LED_COLOR_BUTTON_Y   35
#define LED_POWER_BUTTON_Y   70
#define SERVO_BUTTON_SPACING   5
#define SERVO_BUTTON_Y   10

Enumeration Type Documentation

anonymous enum
Enumerator
detecting 
idle 
update_servos 
update_ledcolor 
update_ledcurrent 

Function Documentation

static void b_back_cb ( void *  button)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void b_led_blue_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_led_green_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_led_off_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_led_red_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_led_white_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_servos_bottomleft_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_servos_bottomright_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_servos_center_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_servos_topleft_cb ( void *  button)
static

Here is the caller graph for this function:

static void b_servos_topright_cb ( void *  button)
static

Here is the caller graph for this function:

static void enter ( void *  screen)
static

Here is the call graph for this function:

static void leave ( void *  screen)
static

Here is the call graph for this function:

static void n_led_powerlimit_cb ( void *  numupdown,
int16_t  value 
)
static

Here is the caller graph for this function:

static void update ( void *  screen)
static

Here is the call graph for this function:

Variable Documentation

BUTTON_STRUCT b_back
static
BUTTON_STRUCT b_led_blue
static
BUTTON_STRUCT b_led_green
static
BUTTON_STRUCT b_led_off
static
BUTTON_STRUCT b_led_red
static
BUTTON_STRUCT b_led_white
static
BUTTON_STRUCT b_servos_bottomleft
static
BUTTON_STRUCT b_servos_bottomright
static
BUTTON_STRUCT b_servos_center
static
BUTTON_STRUCT b_servos_topleft
static
BUTTON_STRUCT b_servos_topright
static
uint32_t led_color
static
uint32_t led_maxcurrent
static
NUMUPDOWN_STRUCT n_led_powerlimit
static
SCREEN_STRUCT screen
static
Initial value:
= {
}
static void leave(void *screen)
Definition: screen_pixytest.c:274
static void update(void *screen)
Definition: screen_pixytest.c:291
static void enter(void *screen)
Definition: screen_pixytest.c:119
uint16_t servo_x
static
uint16_t servo_y
static
enum { ... } state