templog7 2.1.0.0
|
Temp-Log 7 Click Example. More...
Macros | |
#define | DEMO_TEXT_MESSAGE "MikroE - Temp-Log 7 click" |
#define | STARTING_ADDRESS 0x00 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Temp-Log 7 Click Example.
This example demonstrates the use of Temp-Log 7 click board by reading the temperature in Celsius, then writing the specified data to the memory and reading it back.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which clears the EEPROM memory, sets the temperature resolution to 16-bit, enables alert interrupt and sets the temperature alerts to 5 degrees Celsius for low and 40 degrees for high level. Other three IO pins are configured as INPUT.
Reads the temperature in degrees Celsius and the gpio state. After that writes a desired number of bytes to the memory and then verifies if it is written correctly by reading from the same memory location and displaying the memory content. All data is displayed on the USB UART where you can track changes.
#define DEMO_TEXT_MESSAGE "MikroE - Temp-Log 7 click" |
#define STARTING_ADDRESS 0x00 |
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 | ) |