We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a48d6 commit 7f7425fCopy full SHA for 7f7425f
DHT.cpp
@@ -53,6 +53,10 @@ float DHT::convertCtoF(float c) {
53
return c * 9 / 5 + 32;
54
}
55
56
+float DHT::convertFtoC(float f) {
57
+ return (f - 32) * 5 / 9;
58
+}
59
+
60
float DHT::readHumidity(void) {
61
float f;
62
if (read()) {
DHT.h
@@ -32,6 +32,7 @@ class DHT {
32
void begin(void);
33
float readTemperature(bool S=false);
34
float convertCtoF(float);
35
+ float convertFtoC(float);
36
float computeHeatIndex(float tempFahrenheit, float percentHumidity);
37
float readHumidity(void);
38
boolean read(void);
0 commit comments