From a6ec9abaa7aed5b9217fc58af0b40d2b35db9c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=A9ndez?= <49886387+mcmchris@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:10:15 -0400 Subject: [PATCH 1/3] Update DHT.h To Support Arduino Nano Matter Hi Adafruit team, this commit is to add support to the Arduino Nano Matter board that doesn't has declared the **microsecondsToClockCycles()** function --- DHT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DHT.h b/DHT.h index 95570e1..d6f88e3 100644 --- a/DHT.h +++ b/DHT.h @@ -47,7 +47,7 @@ static const uint8_t DHT21{21}; /**< DHT TYPE 21 */ static const uint8_t DHT22{22}; /**< DHT TYPE 22 */ static const uint8_t AM2301{21}; /**< AM2301 */ -#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE) +#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE) || defined(ARDUINO_MATTER) #ifndef microsecondsToClockCycles /*! * As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have From c562c6b9cc7b93144df438eb680b20284530a25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=A9ndez?= <49886387+mcmchris@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:15:48 -0400 Subject: [PATCH 2/3] Update DHT.h --- DHT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DHT.h b/DHT.h index d6f88e3..0954146 100644 --- a/DHT.h +++ b/DHT.h @@ -47,7 +47,7 @@ static const uint8_t DHT21{21}; /**< DHT TYPE 21 */ static const uint8_t DHT22{22}; /**< DHT TYPE 22 */ static const uint8_t AM2301{21}; /**< AM2301 */ -#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE) || defined(ARDUINO_MATTER) +#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE || TARGET_NAME == ARDUINO_MATTER) #ifndef microsecondsToClockCycles /*! * As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have From bdb905aa05173c94fd143ec09e367ba7ac3da320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=A9ndez?= <49886387+mcmchris@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:20:13 -0400 Subject: [PATCH 3/3] Update DHT.h --- DHT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DHT.h b/DHT.h index 0954146..d6f88e3 100644 --- a/DHT.h +++ b/DHT.h @@ -47,7 +47,7 @@ static const uint8_t DHT21{21}; /**< DHT TYPE 21 */ static const uint8_t DHT22{22}; /**< DHT TYPE 22 */ static const uint8_t AM2301{21}; /**< AM2301 */ -#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE || TARGET_NAME == ARDUINO_MATTER) +#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE) || defined(ARDUINO_MATTER) #ifndef microsecondsToClockCycles /*! * As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have