color14
2.0.0.0
|
Color 14 Click is a compact add-on board that represents an accurate color sensing solution. This board features the APDS-9151, an integrated RGB, ambient light sensing, IR LED, and a complete proximity detection system from Broadcom Limited.
We provide a library for the Color14 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 Color14 Click driver.
color14_cfg_setup
Config Object Initialization function. color14_init
Initialization function. color14_get_rgb_ir
Read color data from device. color14_get_als
Read lux data from device. color14_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 :
Application Init
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.