rpi-dht 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe5e8cd792201f1094254832ae8367bfec3fad932714971bbdb9559ed16d8cef
4
- data.tar.gz: 5dbe7d166267e50d8fe65d9a8ce5f9ae054dd7d1f4a5677fef30b86efb4626af
3
+ metadata.gz: d9f30a332a5929e058fd4553d16addebd9d2e19b8feccfe631498806710cfdcd
4
+ data.tar.gz: c2e73772ca696f3a3fa476ad9cc8366a5111e78bea8694cde038b713d07b3546
5
5
  SHA512:
6
- metadata.gz: 8cf85d4adf890c289a0f5bb29e930120f8b1dcfb290e75c37d4239a7a8977cd1a45bb2b542a034a439236d8cf66bb107bff7d7899fa577e767d9326b085572de
7
- data.tar.gz: 07ef2d6c91d7193033d4d79eaff59b6bb5fe6ed0f2014e506c4f54ce1dba6771bef4425531fe1ac21ab4f7264d64b5c111381baae93222fe0eb10964b08fac96
6
+ metadata.gz: 859ebfc657c3ab148646cdd9bd0c06363d7f0a12b11e92fd5673ecdfa1ee391d3af5e6779e12106968905cf364f62fb8a91c2e9a68d6847435a46675dff31bce
7
+ data.tar.gz: ee720b4d59a40caef324e96ad0e197cfb633a9a0429730ef8df11096915e6d0a3f70c58bec1d135f2cc872f6cf064bfcf27ad448327577798c133935eb4ef224
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rpi-dht (0.2.0)
4
+ rpi-dht (0.2.1)
5
5
  rpi_gpio
6
6
 
7
7
  GEM
@@ -6,7 +6,18 @@ module RPi
6
6
 
7
7
  class Base
8
8
  CLEAR_SIGNALS = 500 / 1000.to_f
9
- START_SIGNAL = 1 / 1000.to_f
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
@@ -1,5 +1,5 @@
1
1
  module RPi
2
2
  module Dht
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2020-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rpi_gpio