Merge pull request #76 from terryjmyers/patch-1

Modified read speed
This commit is contained in:
Paint Your Dragon 2019-01-11 16:15:14 -08:00 committed by GitHub
commit 73409c143c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,12 +134,12 @@ boolean DHT::read(bool force) {
// Go into high impedence state to let pull-up raise data line level and
// start the reading process.
digitalWrite(_pin, HIGH);
delay(250);
delay(1);
// First set data line low for 20 milliseconds.
// First set data line low for 1 millisecond.
pinMode(_pin, OUTPUT);
digitalWrite(_pin, LOW);
delay(20);
delay(1);
uint32_t cycles[80];
{