Commit Graph

43 Commits

Author SHA1 Message Date
per1234
660b25b22e
[DHTlib] Correct library.properties architectures value
The previous architectures value of atmelavr causes the example sketches to appear under File > Examples > INCOMPATIBLE > DHTlib and also a warning to be displayed during compilation of any sketch that includes the library:

WARNING: library DHTlib claims to run on (atmelavr) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s).
2018-06-06 14:33:29 -07: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
per1234
3309b8d42b
[DHTlib] Correct library.properties architectures value
The previous `architectures` value of `atmelavr` causes the example sketches to appear under **File > Examples > INCOMPATIBLE > DHTlib** and also a warning to be displayed during compilation of any sketch that includes the library:

WARNING: library DHTlib claims to run on (atmelavr) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s).
2018-02-08 15:12:29 -08:00
RobTillaart
02c271bdaa fix library.json keywords format 2018-01-09 00:11:37 +01:00
RobTillaart
5d7b26abeb fix #87 - version field for library.json files 2018-01-07 19:13:07 +01:00
RobTillaart
d782be9946 0.1.26 updated DHTlib to support the DHT12 and AM23XX series 2017-12-12 20:58:58 +01:00
per1234
f7b7217dfe [DHTlib] Use correct architectures value in library.properties
The previous value causes the example sketches to appear under File > Examples > INCOMPATIBLE > DHTlib and also a warning to be displayed during compilation of any sketch that includes the library:

WARNING: library DHTlib claims to run on (atmelavr) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s).
2017-10-03 07:56:19 -07:00
RobTillaart
ec741c97f0 Fix checksum for DHT11 upon request. 2017-09-20 14:47:53 +02:00
RobTillaart
7177809c01 fix URL path in library.properties 2017-08-20 17:16:48 +02:00
RobTillaart
29604e5ae5 Update readme.md file (no code change) 2017-07-27 15:43:45 +02:00
RobTillaart
994981700d fix issue #31 + fix issue #33 2017-07-27 01:18:02 +02:00
per1234
afde043062 [DHTliib] Use correct architecture value in library.properties
Incorrect architecture value causes the warning:

WARNING: library DHTlib claims to run on [atmelavr] architecture(s) and may be incompatible with your current board which runs on [avr] architecture(s).
2017-07-13 11:27:01 -07:00
Mervill
dd5ee93e2d updates status output in dht22_test 2017-05-08 20:09:22 -07:00
RobTillaart
02cc2c5420 fix issue with delayMicroseconds > 16000 2017-03-06 21:10:50 +01:00
Ivan Kravets
f62b07b8d2 Specify compatible development platform 2017-01-02 23:47:57 +02:00
RobTillaart
8a94bc3acc initial versions of library.properties 2016-12-18 11:02:20 +01:00
RobTillaart
018a4872a6 update library.json files 2016-12-18 10:48:17 +01:00
RobTillaart
45d8bff06a added library.json files 2016-12-17 20:53:18 +01:00
Harry93x
fad0391f62 Add timing analysis, format output, limit execution cycles
To increase the usefulness of the example, I added the measurement of
the complete cycle, which is the important figure. The reading time
itself, though interesting, is not the limiting factor according to the
datasheet.
Additionally, I updated the printing instructions to create a nicely
formatted output and limited the number cycles necessary to reach "del
== 0".
2015-11-14 21:50:01 +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
9bca4c27da + fix switch case (copy paste error) 2015-02-03 10:14:17 +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
16a464af0d + updated readme.txt (dhtlib) 2014-11-16 14:25:44 +01:00
rob tillaart
9d290fe4fc + added support for all errors 2014-10-23 16:15:26 +02: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
2f60754376 update 2014-02-10 18:56:59 +01:00
rob tillaart
926b202e2c + now including the readme.txt 2014-02-10 18:56:10 +01: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