templog4 2.0.0.0
main.c File Reference

TempLog4 Click example. More...

#include "board.h"
#include "log.h"
#include "templog4.h"

Functions

void application_init ()
 
void application_task ()
 
int main (void)
 

Detailed Description

TempLog4 Click example.

Description

This application measures the temperature

The demo application is composed of two sections :

Application Init

Initializes I2C interface and performs a device configuration for properly working. Also sets the temperature limit to the desired values.

Application Task

First ensures that the minimum conversion time is met, and then reads the ambient temperature calculated to the Celsius degrees. Also checks the limit status and shows a message when some limit condition is met.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( )

◆ main()

int main ( void )