Skip to content

Commit

Permalink
Change initial HIGH delay, fix comments in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Jan 29, 2019
1 parent d26e8ec commit d6488c1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DHT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ bool DHT::read(bool force) {
pinMode(_pin, INPUT_PULLUP);

// Now start reading the data line to get the value from the DHT sensor.
delayMicroseconds(60); // Delay a bit to let sensor pull data line low.
delayMicroseconds(40); // Delay a bit to let sensor pull data line low.

// Turn off interrupts temporarily because the next sections
// are timing critical and we don't want any interruptions.
Expand Down
6 changes: 4 additions & 2 deletions examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@

// REQUIRES the following Arduino libraries:
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor

#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>

#define DHTPIN 2 // Pin connected to the DHT sensor.
#define DHTPIN 2 // Digital pin connected to the DHT sensor
// Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 --
// Pin 15 can work but DHT must be disconnected during program upload.

// Uncomment the type of sensor in use:
//#define DHTTYPE DHT11 // DHT 11
Expand Down
6 changes: 4 additions & 2 deletions examples/DHTtester/DHTtester.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

// 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
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor

#include "DHT.h"

#define DHTPIN 2 // what digital pin we're connected to
#define DHTPIN 2 // Digital pin connected to the DHT sensor
// Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 --
// Pin 15 can work but DHT must be disconnected during program upload.

// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=DHT sensor library
version=1.3.1
version=1.3.2
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors
Expand Down

0 comments on commit d6488c1

Please sign in to comment.