c8pini2c 2.0.0.0
|
8pinI2c Click example More...
Macros | |
#define | SURFACE_TEMP_DEVICE_SLAVE_ADDRESS 0x48 |
#define | SURFACE_TEMP_REG_SOFT_RESET 0x2F |
#define | SURFACE_TEMP_REG_ID 0x0B |
#define | SURFACE_TEMP_REG_CONFIG 0x03 |
#define | SURFACE_TEMP_REG_TEMP_MSB 0x00 |
Functions | |
void | surfacetemp_soft_reset () |
uint8_t | surfacetemp_setup () |
float | surfacetemp_get_temperature () |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
8pinI2c Click example
This demo example reads temperature detected by Surface temp click board.
The demo application is composed of two sections :
Initializes the driver and configures a Surface temp click board.
Reads the temperature detected by Surface temp click board and logs it on the USB UART each second.
#define SURFACE_TEMP_DEVICE_SLAVE_ADDRESS 0x48 |
#define SURFACE_TEMP_REG_CONFIG 0x03 |
#define SURFACE_TEMP_REG_ID 0x0B |
#define SURFACE_TEMP_REG_SOFT_RESET 0x2F |
#define SURFACE_TEMP_REG_TEMP_MSB 0x00 |
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
float surfacetemp_get_temperature | ( | ) |
uint8_t surfacetemp_setup | ( | ) |
void surfacetemp_soft_reset | ( | ) |