Skip to content

Commit a215d0d

Browse files
committed
Fix issue #33
1 parent 29604e5 commit a215d0d

File tree

7 files changed

+79
-11
lines changed

7 files changed

+79
-11
lines changed

libraries/DHT2pin/dht2pin.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//
22
// FILE: DHT2pin.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.0.2
5-
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
6-
// URL: http://arduino.cc/playground/Main/DHTLib
7-
// https://github.com/RobTillaart/Arduino/tree/master/libraries
4+
// VERSION: 0.0.3
5+
// PURPOSE: Experimental DHT Temperature & Humidity Sensor library for Arduino
6+
// URL:
87
//
98
// HISTORY:
9+
// 0.0.3 Fix issue #33
1010
// 0.0.2 support for non "F_CPU" boards especially Galileo
1111
// Tested and verified by Maria Emanuella Moura Silva (thanks)
1212
// changed name to DHT2pin

libraries/DHT2pin/dht2pin.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: dht2pin.h
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.0.2
4+
// VERSION: 0.0.3
55
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
66
// URL: http://arduino.cc/playground/Main/DHTLib
77
//
@@ -14,7 +14,7 @@
1414

1515
#include <Arduino.h>
1616

17-
#define DHT2PIN_LIB_VERSION "0.0.1"
17+
#define DHT2PIN_LIB_VERSION "0.0.3"
1818

1919
#define DHTLIB_OK 0
2020
#define DHTLIB_ERROR_CHECKSUM -1
@@ -65,8 +65,8 @@ class DHT2pin
6565
inline int read33() { return read(); };
6666
inline int read44() { return read(); };
6767

68-
double humidity;
69-
double temperature;
68+
float humidity;
69+
float temperature;
7070

7171
private:
7272
uint8_t _rpin;

libraries/DHT2pin/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=DHT2pin
2-
version=0.0.2
2+
version=0.0.3
33
author=Rob Tillaart <rob.tillaart@gmail.com>
44
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
55
sentence=Experimental library of the DHT library that uses 2 pins instead of 3.
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11

2+
# DHT2PIN library
3+
4+
## Description
5+
26
NOTE: THIS LIB IS NOT TESTED EXTENSIVELY YET SO ALL DISCLAIMERS APPLY
37

4-
This library is an experimental version of the DHT library that uses 2 pins instead of 3.
8+
This library is an experimental version of the DHT library that uses 2 pins instead of 1.
59
One pin for all read actions and one pin for write actions.
610

711
It was made after a request which also refered to the links below.
812

913
https://communities.intel.com/thread/53869
1014
http://bigdinotech.com/tutorials/galileo-tutorials/using-1-wire-device-with-intel-galileo/
1115

12-
NOTE: THIS LIB IS NOT TESTED EXTENSIVELY YET SO ALL DISCLAIMERS APPLY
16+
17+
## Credits
18+
19+
Maria Emanuella Moura Silva for testing and verifying this experimental code on a Galileo.
20+
21+
## NOTE: THIS LIB IS NOT TESTED EXTENSIVELY YET SO ALL DISCLAIMERS APPLY
1322

libraries/library.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "",
3+
"keywords": "",
4+
"description": ".",
5+
"authors":
6+
[
7+
{
8+
"name": "Rob Tillaart",
9+
"email": "Rob.Tillaart@gmail.com",
10+
"maintainer": true
11+
}
12+
],
13+
"repository":
14+
{
15+
"type": "git",
16+
"url": "https://github.com/RobTillaart/Arduino.git"
17+
},
18+
"frameworks": "arduino",
19+
"platforms": "*",
20+
"export": {
21+
"include": "libraries/"
22+
}
23+
}

libraries/readme.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# insert lib name here
2+
3+
## Description
4+
5+
...
6+
7+
## Operation
8+
9+
...
10+
11+
* this
12+
* is a
13+
* list
14+
15+
## Credits
16+
17+
if needed
18+
19+
## License
20+
21+
This library is distributed in the hope that it will be useful,
22+
but WITHOUT ANY WARRANTY; without even the implied warranty of
23+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24+
25+

libraries/todo.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
1) Add / update examples
3+
- IEEE754tools
4+
- max44009
5+
- multimap
6+
- NibbleArray
7+
- Par27979
8+
- ParPrinter
9+
- Temperature
10+
11+
2)

0 commit comments

Comments
 (0)