thermostat2 2.0.0.0
|
Thermostat 2 Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Thermostat 2 Click Example.
This example demonstrates the use of Thermostat 2 click board by reading and displaying the temperature in Celsius and turning the relay on/off depending on the temperature value. DS1820, DS18S20 and DS18B20 chips can be used in this example.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Reads and displays the temperature measured by the click board on the UART Terminal. If the temperature goes beneath the THERMOSTAT2_TEMPERATURE_LIMIT, the relay will be turned off while otherwise it will be turned on. In both cases an appropriate message will be displayed on the terminal.
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 | ) |