proximity6
2.0.0.0
|
Proximity 6 click is a versatile proximity detection device on a Click boardâ„¢.
We provide a library for the Proximity6 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 Proximity6 Click driver.
proximity6_cfg_setup
Config Object Initialization function. proximity6_init
Initialization function. proximity6_default_cfg
Click Default Configuration function. proximity6_read_data
Function reads proximity data when one or more data register is updated. proximity6_generic_write
This function writes data to the desired register. proximity6_generic_read
This function reads data from the desired register. This application demonstrates the use of Proximity 6 click board by reading and displaying the raw data measurements from 4 photodiode channels.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Reads the raw data measurements from 4 photodiode channels and displays the results on the USB UART every 200ms approximately.
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.