Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
DHTHumiditySensor.h
Go to the documentation of this file.
1
#ifndef HUMIDISTAT_DHTHUMIDITYSENSOR_H
2
#define HUMIDISTAT_DHTHUMIDITYSENSOR_H
3
4
#include "DHT.h"
5
7
class
DHTHumiditySensor
{
8
private
:
9
DHT &
dht
;
10
public
:
11
explicit
DHTHumiditySensor
(DHT *
dht
);
12
double
getHumidity
()
const
;
13
double
getTemperature
()
const
;
14
void
begin
();
15
void
readSample
();
16
};
17
18
19
#endif
//HUMIDISTAT_DHTHUMIDITYSENSOR_H
DHTHumiditySensor
Implementation of the HumiditySensor interface for the DHT22/AM2302 sensor.
Definition
DHTHumiditySensor.h:7
DHTHumiditySensor::readSample
void readSample()
Definition
DHTHumiditySensor.cpp:17
DHTHumiditySensor::getHumidity
double getHumidity() const
Definition
DHTHumiditySensor.cpp:5
DHTHumiditySensor::getTemperature
double getTemperature() const
Definition
DHTHumiditySensor.cpp:9
DHTHumiditySensor::dht
DHT & dht
Definition
DHTHumiditySensor.h:9
DHTHumiditySensor::DHTHumiditySensor
DHTHumiditySensor(DHT *dht)
Definition
DHTHumiditySensor.cpp:3
DHTHumiditySensor::begin
void begin()
Definition
DHTHumiditySensor.cpp:13
src
sensor
DHTHumiditySensor.h
Generated by
1.12.0