proximity12
2.0.0.0
|
Proximity 12 Click is a compact add-on board that contains a high-performance light and proximity sensing solution. This board features the TMD3719, an optical sensor that integrates ambient light sensing, proximity detection, and flicker detection sensing from AMS-AG.
We provide a library for the Proximity12 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 Proximity12 Click driver.
proximity12_cfg_setup
Config Object Initialization function. proximity12_init
Initialization function. proximity12_default_cfg
Click Default Configuration function. proximity12_read_proximity
This function reads the raw proximity value measured by the Click board. proximity12_read_als
This function reads all als data measured by the Click board. proximity12_set_led_isink
This function sets the LEDs sink scaler and current values. This function demonstrates the use of Proximity 12 Click board.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Reads the proximity and ALS values and displays the results on the USB UART approximately every 100ms.
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.