press 2.1.0.0
|
PRESS Click is a compact add-on board that contains a board-mount pressure sensor. This board features the ILPS28QSW, an absolute digital output barometer from STMicroelectronics. It is a dual full-scale sensor with a measuring range of 260 up to 4060hPa. In addition, it comes with a Qvar detection ability, which is an electric charge variation detection and is available on two pins.
We provide a library for the PRESS 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 PRESS Click driver.
press_cfg_setup
Config Object Initialization function. press_init
Initialization function. press_default_cfg
Click Default Configuration function. press_get_measurement_data
PRESS gets the measurement data function. press_get_ah_qvar_data
PRESS gets the AH/Qvar data function. press_sw_reset
PRESS software reset function. This example demonstrates the use of PRESS Click boardâ„¢ by reading and displaying the pressure, temperature and Qvar measurements.
The demo application is composed of two sections :
The initialization of I2C module and log UART. After driver initialization, the app sets the default configuration.
The demo application shows the module working depending on the example mode:
- EXAMPLE_MODE_PRESS_TEMP: Reads and displays the Pressure [mBar] and Temperature [degree Celsius] data.
- EXAMPLE_MODE_SWIPE_SENSING: Detect a touch or a swipe. Results are being sent to the UART Terminal, where you can track their changes.
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.