i2cisolator6 2.1.0.0
|
I2C Isolator 6 Click example. More...
Macros | |
#define | ACCEL21_DEVICE_ADDRESS_GND 0x18 |
#define | ACCEL21_DEVICE_ADDRESS_VCC 0x19 |
#define | ACCEL21_REG_WHO_AM_I 0x0F |
#define | ACCEL21_DEVICE_ID 0x33 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
I2C Isolator 6 Click example.
This library contains API for the I2C Isolator 6 Click driver. This demo application shows an example of an I2C Isolator 6 Click wired to the Accel 21 Click for reading device ID. The library also includes an I2C writing and reading functions.
The demo application is composed of two sections :
The initialization of the I2C module, log UART. After the driver init, the app sets Accel 21 Click I2C Slave address.
This example demonstrates the use of the I2C Isolator 6 Click boardâ„¢. Logs device ID values of the Accel 21 Click wired to the I2C Isolator 6 Click boardâ„¢.
#define ACCEL21_DEVICE_ADDRESS_GND 0x18 |
#define ACCEL21_DEVICE_ADDRESS_VCC 0x19 |
#define ACCEL21_DEVICE_ID 0x33 |
#define ACCEL21_REG_WHO_AM_I 0x0F |
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 | ) |