discoverpixy
Functions | Variables
screen_pixytest.c File Reference
#include "screen_pixytest.h"
#include "button.h"
#include "tft.h"
#include "touch.h"
#include "pixy.h"
#include <stdlib.h>
#include "system.h"
Include dependency graph for screen_pixytest.c:

Functions

static void b_back_cb (void *button)
 
static void b_runstop_cb (void *button)
 
static void touchCB (void *touchArea, TOUCH_ACTION triggeredAction)
 
static void enter (void *screen)
 
static void leave (void *screen)
 
int pixy_led_test ()
 
int pixy_frame_test ()
 
static void update (void *screen)
 
SCREEN_STRUCTget_screen_pixytest ()
 
int renderBA81 (uint8_t renderFlags, uint16_t width, uint16_t height, uint32_t frameLen, uint8_t *frame)
 
void interpolateBayer (uint16_t width, uint16_t x, uint16_t y, uint8_t *pixel, uint8_t *r, uint8_t *g, uint8_t *b)
 

Variables

static volatile bool pixy_connected = false
 
static BUTTON_STRUCT b_back
 
static BUTTON_STRUCT b_runstop
 
static TOUCH_AREA_STRUCT a_area
 
static volatile bool pixy_running = false
 
static bool old_pixy_running = false
 
static POINT_STRUCT pixy_pos
 
static POINT_STRUCT old_pos
 
static SCREEN_STRUCT screen
 
int colorind
 
const uint32_t colors [] = {0xFF0000, 0x00FF00,0x0000FF,0xFFFF00,0x00FFFF,0xFF00FF,0xFFFFFF,0x000000}
 
const int num_colors = sizeof(colors)/sizeof(uint32_t)
 

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_runstop_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:

void interpolateBayer ( uint16_t  width,
uint16_t  x,
uint16_t  y,
uint8_t *  pixel,
uint8_t *  r,
uint8_t *  g,
uint8_t *  b 
)

Here is the caller graph for this function:

static void leave ( void *  screen)
static

Here is the call graph for this function:

int pixy_frame_test ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int pixy_led_test ( )

Here is the call graph for this function:

int renderBA81 ( uint8_t  renderFlags,
uint16_t  width,
uint16_t  height,
uint32_t  frameLen,
uint8_t *  frame 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static void touchCB ( void *  touchArea,
TOUCH_ACTION  triggeredAction 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void update ( void *  screen)
static

Here is the call graph for this function:

Variable Documentation

TOUCH_AREA_STRUCT a_area
static
BUTTON_STRUCT b_back
static
BUTTON_STRUCT b_runstop
static
int colorind
const uint32_t colors[] = {0xFF0000, 0x00FF00,0x0000FF,0xFFFF00,0x00FFFF,0xFF00FF,0xFFFFFF,0x000000}
const int num_colors = sizeof(colors)/sizeof(uint32_t)
bool old_pixy_running = false
static
POINT_STRUCT old_pos
static
volatile bool pixy_connected = false
static
POINT_STRUCT pixy_pos
static
volatile bool pixy_running = false
static
SCREEN_STRUCT screen
static
Initial value:
= {
}
static void leave(void *screen)
Definition: screen_pixytest.c:114
static void update(void *screen)
Definition: screen_pixytest.c:124
static void enter(void *screen)
Definition: screen_pixytest.c:67