JeeLib
An easy interface to the port headers, the RF12 driver library, timers, low-power code, and more.
 All Classes Files Functions Variables Enumerations Macros Pages
DHTxx Class Reference

Interface for the DHT11 and DHT22 sensors, does not use floating point. More...

#include <Ports.h>

Public Member Functions

 DHTxx (byte pinNum)
 
bool reading (int &temp, int &humi, bool precise=false)
 Results are returned in tenths of a degree and percent, respectively. More...
 

Detailed Description

Interface for the DHT11 and DHT22 sensors, does not use floating point.

Member Function Documentation

bool DHTxx::reading ( int &  temp,
int &  humi,
bool  precise = false 
)

Results are returned in tenths of a degree and percent, respectively.

Set "precise" to true for the more accurate DHT21 and DHT22 sensors.


The documentation for this class was generated from the following files: