File tree Expand file tree Collapse file tree 7 files changed +79
-11
lines changed Expand file tree Collapse file tree 7 files changed +79
-11
lines changed Original file line number Diff line number Diff line change 1
1
//
2
2
// FILE: DHT2pin.cpp
3
3
// 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:
8
7
//
9
8
// HISTORY:
9
+ // 0.0.3 Fix issue #33
10
10
// 0.0.2 support for non "F_CPU" boards especially Galileo
11
11
// Tested and verified by Maria Emanuella Moura Silva (thanks)
12
12
// changed name to DHT2pin
Original file line number Diff line number Diff line change 1
1
//
2
2
// FILE: dht2pin.h
3
3
// AUTHOR: Rob Tillaart
4
- // VERSION: 0.0.2
4
+ // VERSION: 0.0.3
5
5
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
6
6
// URL: http://arduino.cc/playground/Main/DHTLib
7
7
//
14
14
15
15
#include < Arduino.h>
16
16
17
- #define DHT2PIN_LIB_VERSION " 0.0.1 "
17
+ #define DHT2PIN_LIB_VERSION " 0.0.3 "
18
18
19
19
#define DHTLIB_OK 0
20
20
#define DHTLIB_ERROR_CHECKSUM -1
@@ -65,8 +65,8 @@ class DHT2pin
65
65
inline int read33 () { return read (); };
66
66
inline int read44 () { return read (); };
67
67
68
- double humidity;
69
- double temperature;
68
+ float humidity;
69
+ float temperature;
70
70
71
71
private:
72
72
uint8_t _rpin;
Original file line number Diff line number Diff line change 1
1
name =DHT2pin
2
- version =0.0.2
2
+ version =0.0.3
3
3
author =Rob Tillaart <rob.tillaart@gmail.com>
4
4
maintainer =Rob Tillaart <rob.tillaart@gmail.com>
5
5
sentence =Experimental library of the DHT library that uses 2 pins instead of 3.
Original file line number Diff line number Diff line change 1
1
2
+ # DHT2PIN library
3
+
4
+ ## Description
5
+
2
6
NOTE: THIS LIB IS NOT TESTED EXTENSIVELY YET SO ALL DISCLAIMERS APPLY
3
7
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 .
5
9
One pin for all read actions and one pin for write actions.
6
10
7
11
It was made after a request which also refered to the links below.
8
12
9
13
https://communities.intel.com/thread/53869
10
14
http://bigdinotech.com/tutorials/galileo-tutorials/using-1-wire-device-with-intel-galileo/
11
15
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
13
22
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
1
+
2
+ 1) Add / update examples
3
+ - IEEE754tools
4
+ - max44009
5
+ - multimap
6
+ - NibbleArray
7
+ - Par27979
8
+ - ParPrinter
9
+ - Temperature
10
+
11
+ 2)
You can’t perform that action at this time.
0 commit comments