color2 2.0.0.0
|
Color 2 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Color 2 Click example.
This example demonstrates the use of Color 2 click board by reading data from RGB channels and converting them to HSL color and displaying those data as well as the detected color name on the USB UART.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Waits for the data ready interrupt, then reads the values of all channels and converts them to HSL color and displays those data as well as the detected color name on the USB UART every 100ms approximately.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |