compass5 2.0.0.0
|
Compass5 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | device_id |
uint8_t | company_id |
Compass5 Click example.
This is an example that demonstrates the use of Compass 5 Click board that reads data from magnetic sensors for X, Y, and Z axes,processes it and displays it via the UART terminal.
The demo application is composed of two sections :
Initializes I2C and starts to write log, performs power down mode, sets continuous measurement mode; also writes log.
When Compass 5 click is connected via I2C communication, then this example, collects data on the current position of the X, Y and Z axes, processes and displays via the UART terminal. All axis data is printed every 2 seconds.
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 | ) |
uint8_t company_id |
uint8_t device_id |