dht222  2.0.0.0
Functions
main.c File Reference

Dht222 Click example. More...

#include "board.h"
#include "log.h"
#include "dht222.h"

Functions

void dht222_display_temp_hum ()
 
void application_init (void)
 
void application_task (void)
 
void main (void)
 

Detailed Description

Dht222 Click example.

Description

DHT22 2 click is used for measuring the environmental temperature and relative humidity. The calibration coefficient is saved in the OTP memory of an integrated MCU. The integrated MCU also provides I2C or 1-Wire interface, selectable by the onboard SMD jumper selectors. The operating voltage can also be selected by the onboard SMD jumper.

The demo application is composed of two sections :

Application Init

Initialization driver enable's - I2C and start write log.

Application Task

This is a example which demonstrates the use of DHT22 2 Click board. DHT22 2 Click communicates with register via I2C protocol read data from register, measured temperature and humidity data from the AM2322 sensor. Convert temperature data to degrees Celsius [ �C ] and humidity data to percentarg [ % ]. Results are being sent to the Usart Terminal where you can track their changes. All data logs on usb uart for aproximetly every 5 sec.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ dht222_display_temp_hum()

void dht222_display_temp_hum ( )

◆ main()

void main ( void  )