i2c1wire2 2.1.0.0
|
I2C 1-Wire 2 Click example. More...
Macros | |
#define | I2C1WIRE2_DEVICE_SEARCH_CODE 0xF0 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
I2C 1-Wire 2 Click example.
This example demonstrates the use of the I2C 1-Wire 2 Click board by searching if a device is connected and reading its ROMID.
The demo application is composed of two sections :
Initialization of I2C module, log UART and perform Click default configuration.
Performing 1-Wire Search algorithm to find if any device is connected. If a device is connected and detected, its ROMID will be read and displayed.
#define I2C1WIRE2_DEVICE_SEARCH_CODE 0xF0 |
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 | ) |