proximity21
2.1.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the Proximity 21 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 Proximity 21 Click driver.
proximity21_cfg_setup
Config Object Initialization function. proximity21_init
Initialization function. proximity21_default_cfg
Click Default Configuration function. proximity21_get_gpio1_pin
This function returns the GPIO1 (interrupt) pin logic state. proximity21_get_result
This function gets the results reported by the sensor. proximity21_clear_interrupt
This function clears the data ready interrupt. This example demonstrates the use of Proximity 21 click board by reading and displaying the target distance in millimeters on the USB UART.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Waits for a data ready interrupt, then reads the measurement results and logs
the target distance (millimeters) and signal quality (the higher the value the better the signal quality) to the USB UART.
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.