spectrometer2 2.0.0.0
|
Spectrometer2 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Spectrometer2 Click example.
This example demonstrates the use of Spectrometer 2 click board by reading data from 6 ALS 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 ALS channels and converts them to HSL color and displays those data as well as the detected color name on the USB UART every 200ms approximately.
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 | ) |