color13
2.0.0.0
|
Color 13 Click is a compact add-on board that measures the subtlest changes in light. This board features the APDS-9999, I2C compatible RGB, proximity detector, and vertical-cavity surface-emitting laser (VCSEL) in one optical module from Broadcom Limited.
We provide a library for the Color13 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Color13 Click driver.
color13_cfg_setup
Config Object Initialization function. color13_init
Initialization function. color13_get_rgb_ir
Read color data from device. color13_get_als
Read lux data from device. color13_get_proximity
Read proximity data from device. 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.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.