c1wirei2c 2.1.0.0
|
1-Wire I2C Click Example. More...
Macros | |
#define | DEVICE_NAME "Thermo 4 click" |
#define | DEVICE_SLAVE_ADDRESS 0x48 |
#define | DEVICE_REG_TEMPERATURE 0x00 |
#define | DEVICE_TEMPERATURE_RES 0.125f |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
1-Wire I2C Click Example.
This example demonstrates the use of 1-Wire I2C click board by reading the temperature measurement from connected Thermo 4 click board.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Reads the temperature measurement from connected Thermo 4 click board and displays the results on the USB UART once per second.
#define DEVICE_NAME "Thermo 4 click" |
#define DEVICE_REG_TEMPERATURE 0x00 |
#define DEVICE_SLAVE_ADDRESS 0x48 |
#define DEVICE_TEMPERATURE_RES 0.125f |
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 | ) |