mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ce31485de7 | ||
![]() |
c14960c223 | ||
![]() |
880538fa12 | ||
![]() |
cf2346e7c1 | ||
![]() |
bd145c5449 | ||
![]() |
f339feb6b6 | ||
![]() |
b30f03cec7 | ||
![]() |
8f89d15729 | ||
![]() |
61ffee54ba | ||
![]() |
cfaa202f96 | ||
![]() |
86115884c7 |
12
DHT.h
12
DHT.h
@@ -41,13 +41,13 @@
|
||||
#endif
|
||||
|
||||
/* Define types of sensors. */
|
||||
#define DHT11 11 /**< DHT TYPE 11 */
|
||||
#define DHT12 12 /**< DHY TYPE 12 */
|
||||
#define DHT22 22 /**< DHT TYPE 22 */
|
||||
#define DHT21 21 /**< DHT TYPE 21 */
|
||||
#define AM2301 21 /**< AM2301 */
|
||||
static const uint8_t DHT11{11}; /**< DHT TYPE 11 */
|
||||
static const uint8_t DHT12{12}; /**< DHY TYPE 12 */
|
||||
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 (TARGET_NAME == ARDUINO_NANO33BLE)
|
||||
#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE)
|
||||
#ifndef microsecondsToClockCycles
|
||||
/*!
|
||||
* As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have
|
||||
|
@@ -20,7 +20,8 @@
|
||||
// NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1
|
||||
// to 3.3V instead of 5V!
|
||||
// Connect pin 2 of the sensor to whatever your DHTPIN is
|
||||
// Connect pin 4 (on the right) of the sensor to GROUND
|
||||
// Connect pin 3 (on the right) of the sensor to GROUND (if your sensor has 3 pins)
|
||||
// Connect pin 4 (on the right) of the sensor to GROUND and leave the pin 3 EMPTY (if your sensor has 4 pins)
|
||||
// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor
|
||||
|
||||
// Initialize DHT sensor.
|
||||
|
@@ -1,5 +1,5 @@
|
||||
name=DHT sensor library
|
||||
version=1.4.0
|
||||
version=1.4.3
|
||||
author=Adafruit
|
||||
maintainer=Adafruit <info@adafruit.com>
|
||||
sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors
|
||||
|
Reference in New Issue
Block a user