color13 2.0.0.0
|
Color13 Click example. More...
Macros | |
#define | COLOR13_EXAMPLE_PS_LS 3 |
#define | COLOR13_EXAMPLE_RGB 6 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Color13 Click example.
This application showcases ability of click board to read RGB and IR data from device. Also it can be configured to read proximity data and ALS data in lux units.
The demo application is composed of two sections :
Initialization of host communication modules (UART, I2C) and additonal pin. Read and check device ID, selects example and configures device for it.
Depending of selected example in task proximity and als data will be read from device, or it will show ADC value for red, green, blue and ir data from device.
static void color13_proximity_als_example ( void ); static void color13_rgb_example ( void );
#define COLOR13_EXAMPLE_PS_LS 3 |
#define COLOR13_EXAMPLE_RGB 6 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |