i2cextend 2.0.0.0
|
I2CExtend Click example. More...
Functions | |
void | i2cextend_6dofimu11_get_axis (i2cextend_t *ctx, uint8_t axis_out_reg) |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
int16_t | axis |
I2CExtend Click example.
This is an example which demonstrates the use of I2C Extend Click board.
The demo application is composed of two sections :
Initialization driver enables - I2C, check communication with device 6DOF IMU 11 Click connected to the I2C Extend Click ( Remote Mode ), set default configuration and start measurement.
In this example, we read Accel and Mag axis of the connected 6DOF IMU 11 Click boards to the I2C Extend Click ( Remote Mode ) which is connected by a LAN cable to I2C Extend Click ( Local Mode ). Results are being sent to the Usart Terminal where you can track their changes. All data logs write on USB uart changes for every 2 sec.
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 | ) |
void i2cextend_6dofimu11_get_axis | ( | i2cextend_t * | ctx, |
uint8_t | axis_out_reg ) |
int main | ( | void | ) |
int16_t axis |