rpi-dht 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rpi/dht/base.rb +12 -1
- data/lib/rpi/dht/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9f30a332a5929e058fd4553d16addebd9d2e19b8feccfe631498806710cfdcd
|
4
|
+
data.tar.gz: c2e73772ca696f3a3fa476ad9cc8366a5111e78bea8694cde038b713d07b3546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859ebfc657c3ab148646cdd9bd0c06363d7f0a12b11e92fd5673ecdfa1ee391d3af5e6779e12106968905cf364f62fb8a91c2e9a68d6847435a46675dff31bce
|
7
|
+
data.tar.gz: ee720b4d59a40caef324e96ad0e197cfb633a9a0429730ef8df11096915e6d0a3f70c58bec1d135f2cc872f6cf064bfcf27ad448327577798c133935eb4ef224
|
data/Gemfile.lock
CHANGED
data/lib/rpi/dht/base.rb
CHANGED
@@ -6,7 +6,18 @@ module RPi
|
|
6
6
|
|
7
7
|
class Base
|
8
8
|
CLEAR_SIGNALS = 500 / 1000.to_f
|
9
|
-
|
9
|
+
# DHT11
|
10
|
+
# Microprocessor I / O set to output at the same time output low,
|
11
|
+
# and low hold time can not be less than 18ms,
|
12
|
+
# then the microprocessor I / O is set to input state
|
13
|
+
# DHT22
|
14
|
+
# Microprocessor I/O set to output, while output low,
|
15
|
+
# and low hold time can not be less than 800us,
|
16
|
+
# typical values are down 1MS, then the microprocessor I/O is set to input state
|
17
|
+
# min typ max
|
18
|
+
# Tbe Host the start signal down time 0.8 < 1 > 20 mS
|
19
|
+
START_SIGNAL = 19 / 1000.to_f
|
20
|
+
|
10
21
|
VALID_BYTE_SIZE = 5 # humidity_high, humidity_low, temp_high, temp_low, parity
|
11
22
|
BITS_IN_BYTE = 8
|
12
23
|
HUMIDITY_PRECISION = 10.to_f
|
data/lib/rpi/dht/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpi-dht
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- github0013
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rpi_gpio
|