rpi_pinin_msgout 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rpi_pinin_msgout.rb +5 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d1095126e173737b717d57e3514f89f23d409b6
|
4
|
+
data.tar.gz: 9009595b20d5a36f8e80f8bed02d0e60d7fd95fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d132eb56781615e3201a2bae1c66db13360eb3dba89c945a81b38a61c0eff673491449db6e531c0860b01db00490c95f8d398fdd7cf7b54e0903690a567d26e
|
7
|
+
data.tar.gz: 12047a8f41faa24315604060cc8a2760415ab7700521310c483df2615986064ddd2890cac392f777ef6c349a550291f0575d919584f2498809a0a4969464e4c9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rpi_pinin_msgout.rb
CHANGED
@@ -35,6 +35,10 @@ end
|
|
35
35
|
|
36
36
|
|
37
37
|
class RPiPinInMsgOut < RPiPinIn
|
38
|
+
|
39
|
+
|
40
|
+
HIGH = 1
|
41
|
+
LOW = 0
|
38
42
|
|
39
43
|
# duration: Used by sample mode
|
40
44
|
|
@@ -123,7 +127,7 @@ class RPiPinInMsgOut < RPiPinIn
|
|
123
127
|
self.watch do |state|
|
124
128
|
|
125
129
|
name = state.to_i == 1 ? :on_keydown : :on_keyup
|
126
|
-
external.method(name).call
|
130
|
+
external.method(name).call if external
|
127
131
|
|
128
132
|
puts Time.now.to_s + ': ' + state.to_s if @verbose
|
129
133
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpi_pinin_msgout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
55qRY75k9VJA2GfpeY0Nw/6IyHSZ2JFdwtTDZPKQpT69gVGu7XJlquG9lUMQaNc+
|
32
32
|
2CuqDKVQmWkNHg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-
|
34
|
+
date: 2016-10-31 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rpi_pinin
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.5.1
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: Returns meaningful messages for humans from the capture of a Raspberry PI
|
metadata.gz.sig
CHANGED
Binary file
|