accel4 2.0.0.0
|
Accel4 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Accel4 Click example.
This example is a showcase of the ability of the device to read 3 axis data in varity of 3 resolutions, ability to configure 2 interrput pins for user needs etc..
The demo application is composed of two sections :
Initializion of communication modules (I2C/SPI, UART) and additional interrupt pins. Reading status register in loop until power up bit is set to 1. Then reads device ID and checks if it's valid, and in the end configures device to get interrupt on new data received, set device in active mode and sets currently configured resolution to context object.
Reads data of all 3 axes whenever interrupt is received and logs it.
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 | ) |