6 Commits

Author SHA1 Message Date
b64fe15ad0 Bump to 1.4.0 2020-09-16 14:42:30 -04:00
7062b127f0 Merge pull request #167 from tjpetz/missing-nanoble-support
Add missing microsecondsToClockCycles for 33 BLE
2020-09-08 16:34:27 -04:00
f0a66b0dd3 Adjust comments to comply with doxygen. 2020-09-08 16:12:02 -04:00
b504fa540e fix extra space and end of line 2020-09-08 14:48:08 -04:00
fa22bc6ca4 Fix lint errors 2020-09-08 14:41:40 -04:00
a1f0c1c038 Add missing microsecondsToClockCycles for 33 BLE 2020-09-08 13:57:07 -04:00
2 changed files with 11 additions and 1 deletions

10
DHT.h
View File

@ -47,6 +47,16 @@
#define DHT21 21 /**< DHT TYPE 21 */
#define AM2301 21 /**< AM2301 */
#if (TARGET_NAME == ARDUINO_NANO33BLE)
#ifndef microsecondsToClockCycles
/*!
* As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have
* microsecondsToClockCycles defined.
*/
#define microsecondsToClockCycles(a) ((a) * (SystemCoreClock / 1000000L))
#endif
#endif
/*!
* @brief Class that stores state and functions for DHT
*/

View File

@ -1,5 +1,5 @@
name=DHT sensor library
version=1.3.10
version=1.4.0
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors