Color 4 Click example.
Description
This library contains API for the Color 4 Click driver. This driver provides the functions for the sensor configuration and for reading RGBW and ambient light data from the device. This example displays RGBW data, Ambient light level, CCT data and the light color names.
The demo application is composed of two sections :
Application Init
Initialization of I2C module and log UART. After driver initialization, default settings turn on the device.
Application Task
This example demonstrates the use of the Color 4 Click board™. Reads and displays the results of the RGBW, Ambient light level, calculate the correlated color temperature. This example also detects and displays the light color names. Results are being sent to the UART Terminal, where you can track their changes.
- Note
- Color detection is obtained based on the analysis of calculate the correlated color temperature (CCT) data and the CIE 1931 chromaticity diagram. For more details please refer to the “Designing the VEML6040 into an Application” application note (www.vishay.com/doc?84331).
- Author
- Nenad Filipovic