accelqvar
2.1.0.0
|
AccelQvar Click example. More...
Macros | |
#define | ACCELQVAR_THOLD_DETECT_TOUCH 1.0 |
#define | ACCELQVAR_TOUCH_ZERO 0.0 |
#define | ACCELQVAR_THOLD_SENS 1.3 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
AccelQvar Click example.
This library contains API for the AccelQvar Click driver. The library initializes and defines the I2C and SPI drivers to write and read data from registers and the default configuration for reading the accelerator data and Qvar electrostatic sensor measurement.
The demo application is composed of two sections :
The initialization of I2C and SPI module and log UART. After driver initialization, the app sets the default configuration.
This example demonstrates the use of the AccelQvar Click board. Measures and displays acceleration data for the X-axis, Y-axis, and Z-axis [mg] and detects and displays a touch position and the strength of a touch. Results are being sent to the UART Terminal, where you can track their changes.
#define ACCELQVAR_THOLD_DETECT_TOUCH 1.0 |
#define ACCELQVAR_THOLD_SENS 1.3 |
#define ACCELQVAR_TOUCH_ZERO 0.0 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |