C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
dht11.h
Go to the documentation of this file.
1
11#pragma once
12#include "hardware/gpio.h"
13
14#include "hardware/gpio.h"
15
16
17
23{
27 float humidity;
30} ;
31
32
37class DHT11
38{
39private:
41 uint gpio_in;
42
43public:
49 void read_from_dht(struct_DHTReading *result);
55 DHT11(uint gpio_in_);
56};
DHT11(uint gpio_in_)
Construct a new DHT11 object.
Definition dht11.cpp:11
void read_from_dht(struct_DHTReading *result)
the member used to read and convert the values send by DHT11
Definition dht11.cpp:18
the sensor result is given according to this structure:
Definition dht11.h:23
float humidity
the converted values in % of relative humidity
Definition dht11.h:27
float temp_celsius
the converted value in °Celsius
Definition dht11.h:29
bool is_valid
a flag that indicates the reading from DHT11 is valid
Definition dht11.h:25