Commit Graph

32 Commits

Author SHA1 Message Date
Rob Tillaart
d3791d6a17 0.1.36 DHTlib 2023-10-25 17:25:03 +02:00
rob tillaart
42c06fdaf5 0.1.35 DHTlib 2021-12-16 16:44:08 +01:00
rob tillaart
8a64b66732 0.1.34 DHTlib 2021-11-13 19:57:17 +01:00
rob tillaart
cc7e03d524 update libs 2021-03-01 10:11:54 +01:00
rob tillaart
e5bc4a1d9a update libs 2021-02-03 17:20:20 +01:00
rob tillaart
7661eee8b4 2021-01-29 2021-01-29 12:31:58 +01:00
rob tillaart
a19ec7f025 update libraries A-D 2020-11-27 11:10:47 +01:00
RobTillaart
dee30a3f5b Fix issue #111 - DHT12 negative temperature 2018-09-02 16:26:19 +02:00
RobTillaart
a145dc10af refactored 2018-04-03 19:08:27 +02:00
RobTillaart
2b8f54b4cb 0.1.27 added get + setDisableIRQ 2018-03-26 22:30:03 +02:00
RobTillaart
d782be9946 0.1.26 updated DHTlib to support the DHT12 and AM23XX series 2017-12-12 20:58:58 +01:00
RobTillaart
ec741c97f0 Fix checksum for DHT11 upon request. 2017-09-20 14:47:53 +02:00
RobTillaart
994981700d fix issue #31 + fix issue #33 2017-07-27 01:18:02 +02:00
RobTillaart
02cc2c5420 fix issue with delayMicroseconds > 16000 2017-03-06 21:10:50 +01:00
rob tillaart
e475755fe0 fix delayMicroseconds 2015-10-12 20:48:53 +02:00
rob tillaart
a48ea1ea29 + version 0.1.21
+ replaced delay by delayMicroseconds()
+ removed dependency on F_CPU
+ added constructor
+ refactor
2015-10-12 20:43:24 +02:00
Peter Hahn
174a065598 Replace delay with delayMicroseconds to let it work while interruppts are disabeled.
In multihreaded environment (I used NilRTOS) its usefull to disable interruppts while reading the sensors. However delay() requires interrupts to be enabled. If you read more than one sensor in a sequence the 2nd one gets spurious DHTLIB_ERROR_CONNECT errors. Timing issues with the wakeup delay().
They don't used to happen it interrupts are enabled. Replacing delay() with delayMicroseconds() solved this issue.
2015-10-11 22:56:25 +02:00
rob tillaart
33843c68ba + version 0.1.20
+ changed return type to int8_t reducing footprint with 34 bytes
+ minor comment change
2015-03-01 11:53:47 +01:00
rob tillaart
54ee843935 + version 0.1.19
+ fixed wrong mask DHT11
2015-01-21 21:46:04 +01:00
rob tillaart
baa1e15833 + 0.1.18 fixed support for DHT11 again 2014-11-25 19:40:25 +01:00
rob tillaart
e722f7d26c + version 0.1.17
+ replaced micros() with adaptive loopcount
+ removed DHTLIB_INVALID_VALUE (user should decide if value is usable)
+ more detailed errors per phase of handshake
+ added DHTLIB_ERROR_CONNECT
+ added DHTLIB_ERROR_ACK_L  DHTLIB_ERROR_ACK_H
+ added fix for pre 1.0 (not tested)
2014-10-15 08:00:59 +02:00
rob tillaart
41cc579488 + masking unused bits (less errors);
+ refactored bits[] usage
2014-10-15 07:48:27 +02:00
rob tillaart
fa681d5322 + reduced # micros calls 2->1 in inner loop. => footprint -18
detection of the zero/one is doen by measuring the whole bit LOW+HIGH
+ improved wait for acknowledge
+ merged two loopCounters into one.
+ layout
+ dht22_test sketch collects statistics (every 20 reads)
2014-10-08 16:37:30 +02:00
rob tillaart
e4ad65003b + replace digital read with faster (~3x) code
=> smaller footprint
  => more robust for low MHz devices
2014-10-05 10:52:52 +02:00
rob tillaart
e2d0b3b613 + version 0.1.13 (version 0.1.12 not usable -> skipped)
+ added support for DHT33 + DHT44
+ added test sketches for DHT33 + DHT44
+ improved protocol handling
+ refactored code style,
+ refactored footprint (part interface inline)
+ renamed private _read => _readSensor
+ added dht_tuning sketch to see timing
2014-06-26 20:48:20 +02:00
rob tillaart
ba5e9bd8f9 refactored TIMEOUT 2014-06-01 13:58:36 +02:00
rob tillaart
1f2314cdbf optimized wakeup and timeout 2014-06-01 09:48:06 +02:00
rob tillaart
54c8c468ef + initial version of readme
+ fix versionnr
2014-02-09 19:35:40 +01:00
rob tillaart
616ee0c061 + 0.1.09
+ optimize size
+ timeout check
+ use of mask to minimize shifts
+ added time measurement in dht22_test
+ reindented code
2014-02-08 13:53:52 +01:00
Rob Tillaart
4126dfc63a + 0.1.08
+ minor revision of comments
+ added formula for timeout to support DUE
2013-11-26 08:29:24 +01:00
Rob Tillaart
c7c5bdf661 + finalized support for DHT21
+ made TIMEOUT depends on clock ==> F_CPU
2013-09-29 12:35:28 +02:00
Rob Tillaart
fabe3ba99b Add dht library to git 2013-08-28 13:57:45 +02:00