mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Clarified the Unified Sensor Lib requirement in examples & README
This commit is contained in:
parent
b781f5998d
commit
d26e8ec729
19
README.md
19
README.md
@ -1,15 +1,14 @@
|
|||||||
This is an Arduino library for the DHT series of low cost temperature/humidity sensors.
|
# Adafruit DHT Humidity & Temperature Sensor Library
|
||||||
|
|
||||||
|
An Arduino library for the DHT series of low cost temperature/humidity sensors.
|
||||||
|
|
||||||
Tutorial: https://learn.adafruit.com/dht
|
Tutorial: https://learn.adafruit.com/dht
|
||||||
|
|
||||||
To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder DHT. Check that the DHT folder contains DHT.cpp and DHT.h. Place the DHT library folder your <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.
|
**You must have the following Arduino libraries installed to use this class:**
|
||||||
|
|
||||||
# Adafruit DHT Humidity & Temperature Unified Sensor Library
|
|
||||||
|
|
||||||
This library also includes an optional class for the
|
|
||||||
[DHT humidity and temperature sensor](https://learn.adafruit.com/dht/overview)
|
|
||||||
which is designed to work with the [Adafruit unified sensor library](https://learn.adafruit.com/using-the-adafruit-unified-sensor-driver/introduction).
|
|
||||||
|
|
||||||
You must have the following Arduino libraries installed to use this class:
|
|
||||||
|
|
||||||
- [Adafruit Unified Sensor Library](https://github.com/adafruit/Adafruit_Sensor)
|
- [Adafruit Unified Sensor Library](https://github.com/adafruit/Adafruit_Sensor)
|
||||||
|
|
||||||
|
Examples include both a "standalone" DHT example, and one that works along with the Adafruit Unified Sensor Library. Unified sensor library is required even if using the standalone version.
|
||||||
|
|
||||||
|
Recent Arduino IDE releases include the Library Manager for easy installation. Otherwise, to download, click the DOWNLOADS button in the top right corner, rename the uncompressed folder DHT. Check that the DHT folder contains DHT.cpp and DHT.h. Place the DHT library folder your <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
// Written by Tony DiCola for Adafruit Industries
|
// Written by Tony DiCola for Adafruit Industries
|
||||||
// Released under an MIT license.
|
// Released under an MIT license.
|
||||||
|
|
||||||
// Depends on the following Arduino libraries:
|
// REQUIRES the following Arduino libraries:
|
||||||
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor
|
|
||||||
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
|
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
|
||||||
|
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor
|
||||||
|
|
||||||
#include <Adafruit_Sensor.h>
|
#include <Adafruit_Sensor.h>
|
||||||
#include <DHT.h>
|
#include <DHT.h>
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
// Example testing sketch for various DHT humidity/temperature sensors
|
// Example testing sketch for various DHT humidity/temperature sensors
|
||||||
// Written by ladyada, public domain
|
// Written by ladyada, public domain
|
||||||
|
|
||||||
|
// REQUIRES the following Arduino libraries:
|
||||||
|
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
|
||||||
|
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Senso
|
||||||
|
|
||||||
#include "DHT.h"
|
#include "DHT.h"
|
||||||
|
|
||||||
#define DHTPIN 2 // what digital pin we're connected to
|
#define DHTPIN 2 // what digital pin we're connected to
|
||||||
|
Loading…
Reference in New Issue
Block a user