Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
DHTHumiditySensor.cpp
Go to the documentation of this file.
1
#include "
DHTHumiditySensor.h
"
2
3
DHTHumiditySensor::DHTHumiditySensor
(DHT *dht) : dht(*dht) {}
4
5
double
DHTHumiditySensor::getHumidity
()
const
{
6
return
dht
.readHumidity();
7
}
8
9
double
DHTHumiditySensor::getTemperature
()
const
{
10
return
dht
.readTemperature();
11
}
12
13
void
DHTHumiditySensor::begin
() {
14
dht
.begin();
15
}
16
17
void
DHTHumiditySensor::readSample
() {
18
dht
.read(
true
);
19
}
DHTHumiditySensor.h
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.cpp
Generated by
1.12.0