temphum11 2.0.0.0
main.c File Reference

TempHum11 Click example. More...

#include "board.h"
#include "log.h"
#include "temphum11.h"

Functions

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

Detailed Description

TempHum11 Click example.

Description

This click has two sensors which can be set to sample measurements with the resolution of 8, 11 or 14 bits, based on the measurement time. Calibration coefficients that are applied to the measured value and the results are stored in the MSB/LSB format, on the output registers. These values are then used in formulas so that the final temperature or relative humidity data can be calculated.

The demo application is composed of two sections :

Application Init

Initializes driver init, test comunication and configuration chip for measurement.

Application Task

Reads Temperature and Humidity data. This data logs to USBUART every 1500ms.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

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 ( void )

◆ main()

int main ( void )