color6
2.0.0.0
|
Color 6 click is a very accurate color sensing Click board™ which features the AS73211, an XYZ true color sensor from ams.
We provide a library for the Color6 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Color6 Click driver.
void color6_cfg_setup ( color6_cfg_t *cfg );
COLOR6_RETVAL color6_init ( color6_t *ctx, color6_cfg_t *cfg );
void color6_default_cfg ( color6_t *ctx );
void color6_write_byte ( color6_t *ctx, uint8_t reg, uint8_t r_data );
uint8_t color6_read_byte ( color6_t *ctx, uint8_t reg );
float color6_get_temperature ( color6_t *ctx );
Reads values from the X / Y / Z channel and converts to ee (input light irradiance regarding to the photodiode�s area within the conversion time interval) data.
The demo application is composed of two sections :
Initializes driver init and configuration chip for measurement.
Reads values from the X / Y / Z channel and converts to ee (input light irradiance regarding to the photodiode�s area within the conversion time interval) data. This data logs on USB UART every 2 seconds.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.