mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Switch to use noInterrupts and interrupts function. make read() public. This resolves pull #15.
This commit is contained in:
2
DHT.h
2
DHT.h
@@ -24,7 +24,6 @@ class DHT {
|
||||
private:
|
||||
uint8_t data[6];
|
||||
uint8_t _pin, _type, _count;
|
||||
boolean read(void);
|
||||
unsigned long _lastreadtime;
|
||||
boolean firstreading;
|
||||
|
||||
@@ -35,6 +34,7 @@ class DHT {
|
||||
float convertCtoF(float);
|
||||
float computeHeatIndex(float tempFahrenheit, float percentHumidity);
|
||||
float readHumidity(void);
|
||||
boolean read(void);
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user