accel28
2.1.0.0
|
Accel 28 Click is a compact add-on board that contains an acceleration sensor. This board features the LIS2HH12TR, an ultra-low-power high-performance three-axis accelerometer from STMicroelectronics. It allows selectable full-scale acceleration measurements in ranges of ±2g, ±4g, and ±8g in three axes with a configurable host interface that supports both SPI and I2C serial communication.
We provide a library for the Accel 28 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 Accel 28 Click driver.
accel28_cfg_setup
Config Object Initialization function. accel28_init
Initialization function. accel28_default_cfg
Click Default Configuration function. accel28_get_data
Accel 28 data reading function. accel28_write_reg
Accel 28 register data writing function. accel28_sw_reset
Accel 28 SW reset function. This example demonstrates the use of Accel 28 Click board by reading and
displaying the accelerometer data (X, Y, and Z axis).
The demo application is composed of two sections :
Initializes the driver, performs the Click default configuration.
Reads and displays on the USB UART the accelerometer data (X, Y, and Z axis)
when it is available.
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.