Commit Graph

136 Commits

Author SHA1 Message Date
Phillip Burgess
01490aa8de Vary delay by sensor type a la PR #70 2019-01-11 17:24:16 -08:00
Phillip Burgess
261e997a90 Improve output formatting in examples 2019-01-11 17:05:42 -08:00
Phillip Burgess
bdd2756ed1 Fix computeHeatIndex declaration, check F_CPU in expectPulse 2019-01-11 16:47:34 -08:00
Paint Your Dragon
07da1cd001
Merge pull request #91 from chelmi/master
Fix for slower boards. Use uint16_t in expectPulse loop to increase sampling rate
2019-01-11 16:41:47 -08:00
Paint Your Dragon
b3b0b08d6d
Merge pull request #115 from owenduffy/master
Fix timing and pin mode change to comply with datasheet.
2019-01-11 16:34:29 -08:00
Paint Your Dragon
be8859e28c
Merge pull request #113 from gpambrozio/master
Making the library work nicely with the nrf52
2019-01-11 16:34:03 -08:00
Paint Your Dragon
bf86a4068c
Merge pull request #112 from SConaway/patch-1
Read Temp and Humidity if not specified
2019-01-11 16:33:11 -08:00
Phillip Burgess
f8d3497fac "Better Debug Information" via Driver55 PR #110 2019-01-11 16:31:02 -08:00
Paint Your Dragon
4bc4ec3fc4
Merge pull request #109 from per1234/keywords-separator
Use correct field separator in keywords.txt
2019-01-11 16:24:18 -08:00
Paint Your Dragon
efcca31a7f
Merge pull request #108 from qub1750ul/master
Use bool instead of boolean
2019-01-11 16:23:45 -08:00
Paint Your Dragon
fa129747e8
Merge pull request #95 from fanthos/master
Add support for DHT12.
2019-01-11 16:22:00 -08:00
Paint Your Dragon
dff65098bb
Merge pull request #82 from adams13x13/patch-1
Fixes #81 Distinguish "signal already there" from "timeout"
2019-01-11 16:18:37 -08:00
Paint Your Dragon
73409c143c
Merge pull request #76 from terryjmyers/patch-1
Modified read speed
2019-01-11 16:15:14 -08:00
Paint Your Dragon
5550a040c2
Merge pull request #61 from 7eggert/master
Save 66 bytes by using integer arithmetric
2019-01-11 16:05:29 -08:00
Paint Your Dragon
dc71b006b6
Merge pull request #52 from Spacefish/master
Use MIN_INTERVAL define instead of hardcoded value
2019-01-11 16:02:07 -08:00
Paint Your Dragon
562a4878a9
Merge pull request #47 from jongho123/master
update dht.cpp. mod readHumidity().
2019-01-11 16:01:00 -08:00
W12\owen
b429942ce8 Fix timing and pin mode change to comply with datasheet. 2018-09-24 06:20:01 +10:00
Gustavo Ambrozio
7787bdd186 Making the library work nicely with the nrf52 2018-08-14 13:44:40 -06:00
Steven Conaway
2dfa77993d
Update DHT.cpp 2018-07-30 11:31:34 -07:00
Steven Conaway
f771939337
Update DHT.h 2018-07-30 11:27:30 -07:00
Steven Conaway
6b8b1ccdb9
Update DHT.cpp 2018-07-30 11:23:35 -07:00
per1234
a1169d20b4
Use correct field separator in keywords.txt
The Arduino IDE requires the use of a single true tab separator between the keyword name and identifier. When spaces are used rather than a true tab the keyword is not highlighted.

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords
2018-07-16 05:02:42 -07:00
Giuseppe Masino
3bba771f8c Changed boolean to bool 2018-06-27 19:18:17 +02:00
Boyi C
5211b2d701 fix typo 2017-12-12 14:24:57 +08:00
Boyi C
a607a50475 Add support for DHT12.
Change DHT11 temperature resolution to 0.1 instead of 1.
2017-12-12 14:20:26 +08:00
Michel Metzger
b07db5af21 Fix for slower boards. Use uint16_t in expectPulse loop to increase sampling rate and avoid bad readings.
Tested on atmega328 @ 8MHz and Feather M0 @ 48MHz
2017-11-02 22:53:50 -04:00
adams13x13
761f4f4fb9 Fixes #81 "signal already there" != "timeout"
If expectPulse(LOW) sees the port is already LOW (result == 0), this is not timeout!
2017-09-02 20:15:19 +02:00
Terry J Myers
16e61f1084 Modified read speed
Reduced delay times from 250ms and 20ms to 1ms.  This was done in accordance with the datasheet.  E.G. no where does it say you need to wait 250ms or 20ms.  It does say to set the line high for a minimum of 1ms (the second delay).  This has been tested and is working in my of my projects
2017-04-09 19:35:04 -04:00
microbuilder
c978977718 Merged unified and raw libraries 2016-10-26 23:44:39 +02:00
Bodo Eggert
519393f42e Save 66 bytes by using integer arithmetric 2016-09-08 17:11:29 +02:00
Tony DiCola
09344416d2 Add GitHub issue template 2016-05-27 13:43:18 -07:00
Tony DiCola
6722942d6c Add GitHub pull request template 2016-05-27 13:38:07 -07:00
Timo Witte
cad6977ba8 fix initilization of _lastreadtime 2015-12-27 02:47:09 +01:00
Spacefish
53375d8d70 Use MIN_INTERVAL define instead of hardcoded value 2015-12-26 22:32:34 +01:00
JongHo Lim
89937d5d25 mod readHumidity(). using parameter 'force' 2015-11-29 22:27:43 +09:00
Tony DiCola
edcd0e06e6 Merge branch 'master' of https://github.com/adafruit/DHT-sensor-library 2015-10-12 21:30:18 -07:00
Tony DiCola
15020aa891 Fix #44 by conditionally excluding unused port and bitmask state on non-AVR platforms. 2015-10-12 21:30:01 -07:00
Tony DiCola
572347f137 Merge comment update from pull #43 2015-10-12 21:09:17 -07:00
Tony DiCola
e9daf69083 Merge README.md change from pull #43 2015-10-12 21:08:31 -07:00
Tony DiCola
56058fecc5 Bump library to 1.2.2 version. 2015-10-12 18:39:28 -07:00
Tony DiCola
d71288af17 Merge branch 'jmdana-master' 2015-10-12 18:38:58 -07:00
Tony DiCola
ce3190f65c Switch back to integer division in array indexing. 2015-10-12 18:37:54 -07:00
J.M. Dana
5bc0a5c796 Divisions turned into multiplications
As correctly stated by Mausy5043, the division is quite slow in most
microcontrollers, so I have replaced them with multiplications.
2015-10-06 23:42:19 +01:00
Tony DiCola
5fb1668822 Merge branch 'jmdana-master' 2015-10-05 17:55:14 -07:00
Tony DiCola
c57f0c8c29 Bump version to 1.2.1 2015-10-05 17:54:59 -07:00
J.M. Dana
51a8b814ac Divisions have been replaced by multiplications. 2015-10-03 13:42:09 +01:00
J.M. Dana
36fb16274b DHT::computeHeatIndex has been modified so it uses both Rothfusz and
Steadman's equations. As a result, it allows a larger range of
temperatures and more accurate results for extreme conditions.
2015-10-02 21:50:43 +01:00
Tony DiCola
6c0c723907 Merge branch 'matthijskooijman-fixes' 2015-09-15 12:26:54 -07:00
Tony DiCola
232ad0cd70 Bump version to 1.2.0 after integrating optimizations from matthijskooijman. 2015-09-15 12:26:38 -07:00
Matthijs Kooijman
f9c3f323e3 Use INPUT_PULLUP
Previously, the mode was configured to INPUT and then written HIGH,
which works on AVR but isn't very portable. Instead, this uses the
INPUT_PULLUP pin mode (available since Arduino 1.0.1) which is portable.
2015-07-24 21:44:41 +02:00