26 #define DEBUG_PRINTER Serial 30 #define DEBUG_PRINT(...) { DEBUG_PRINTER.print(__VA_ARGS__); } 31 #define DEBUG_PRINTLN(...) { DEBUG_PRINTER.println(__VA_ARGS__); } 33 #define DEBUG_PRINT(...) {} 34 #define DEBUG_PRINTLN(...) {} 49 DHT(uint8_t pin, uint8_t type, uint8_t count=6);
50 void begin(uint8_t usec=55);
51 float readTemperature(
bool S=
false,
bool force=
false);
52 float convertCtoF(
float);
53 float convertFtoC(
float);
54 float computeHeatIndex(
bool isFahrenheit=
true);
55 float computeHeatIndex(
float temperature,
float percentHumidity,
bool isFahrenheit=
true);
56 float readHumidity(
bool force=
false);
57 bool read(
bool force=
false);
67 uint32_t _lastreadtime, _maxcycles;
71 uint32_t expectPulse(
bool level);
81 #if !defined(ARDUINO_ARCH_NRF52) 86 #if !defined(ARDUINO_ARCH_NRF52) Class that stores state and functions for DHT.
Definition: DHT.h:47
Class that defines Interrupt Lock Avaiability.
Definition: DHT.h:78