|
discoverpixy
|
#include "screen_pixytest.h"#include "button.h"#include "tft.h"#include "touch.h"#include "pixy.h"#include <stdlib.h>#include "system.h"
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_STRUCT * | get_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) |
|
static |


|
static |

|
static |

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

|
static |

| int pixy_frame_test | ( | ) |


| int pixy_led_test | ( | ) |

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


|
static |


|
static |

|
static |
|
static |
|
static |
| int colorind |
| const uint32_t colors[] = {0xFF0000, 0x00FF00,0x0000FF,0xFFFF00,0x00FFFF,0xFF00FF,0xFFFFFF,0x000000} |
| const int num_colors = sizeof(colors)/sizeof(uint32_t) |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.9.1