26 #define DEBUG_PRINTER \ 32 #define DEBUG_PRINT(...) \ 33 { DEBUG_PRINTER.print(__VA_ARGS__); } 34 #define DEBUG_PRINTLN(...) \ 35 { DEBUG_PRINTER.println(__VA_ARGS__); } 37 #define DEBUG_PRINT(...) \ 39 #define DEBUG_PRINTLN(...) \ 50 #if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE) 51 #ifndef microsecondsToClockCycles 56 #define microsecondsToClockCycles(a) ((a) * (SystemCoreClock / 1000000L)) 65 DHT(uint8_t pin, uint8_t type, uint8_t count = 6);
72 bool isFahrenheit =
true);
74 bool read(
bool force =
false);
85 uint32_t _lastreadtime, _maxcycles;
89 uint32_t expectPulse(
bool level);
98 #if !defined(ARDUINO_ARCH_NRF52) 103 #if !defined(ARDUINO_ARCH_NRF52) float convertCtoF(float)
Converts Celcius to Fahrenheit.
Definition: DHT.cpp:133
DHT(uint8_t pin, uint8_t type, uint8_t count=6)
Instantiates a new DHT class.
Definition: DHT.cpp:43
float convertFtoC(float)
Converts Fahrenheit to Celcius.
Definition: DHT.cpp:141
bool read(bool force=false)
Read value from sensor or return last one from less than two seconds.
Definition: DHT.cpp:232
diff --git a/html/globals.html b/html/globals.html
index bcdcf07..a60456d 100644
--- a/html/globals.html
+++ b/html/globals.html
@@ -86,9 +86,6 @@ $(function() {
DHT_SENSOR_VERSION
: DHT_U.h
-
microsecondsToClockCycles
-: DHT.h
-
MIN_INTERVAL
: DHT.cpp
diff --git a/html/globals_defs.html b/html/globals_defs.html
index 2e01711..1fc50f9 100644
--- a/html/globals_defs.html
+++ b/html/globals_defs.html
@@ -86,9 +86,6 @@ $(function() {
DHT_SENSOR_VERSION
: DHT_U.h
-
microsecondsToClockCycles
-: DHT.h
-
MIN_INTERVAL
: DHT.cpp
diff --git a/html/search/all_7.js b/html/search/all_7.js
index d029170..9bc38bc 100644
--- a/html/search/all_7.js
+++ b/html/search/all_7.js
@@ -1,5 +1,4 @@
var searchData=
[
- ['microsecondstoclockcycles',['microsecondsToClockCycles',['../_d_h_t_8h.html#aa4a5bbc71d71ab25856c1366b6ca15bb',1,'DHT.h']]],
['min_5finterval',['MIN_INTERVAL',['../_d_h_t_8cpp.html#ae5d44a5fa9fd9d113f6bff639f06ddd6',1,'DHT.cpp']]]
];
diff --git a/html/search/defines_2.js b/html/search/defines_2.js
index d029170..9bc38bc 100644
--- a/html/search/defines_2.js
+++ b/html/search/defines_2.js
@@ -1,5 +1,4 @@
var searchData=
[
- ['microsecondstoclockcycles',['microsecondsToClockCycles',['../_d_h_t_8h.html#aa4a5bbc71d71ab25856c1366b6ca15bb',1,'DHT.h']]],
['min_5finterval',['MIN_INTERVAL',['../_d_h_t_8cpp.html#ae5d44a5fa9fd9d113f6bff639f06ddd6',1,'DHT.cpp']]]
];