rpi_gpio 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +7 -1
- data/README.md +4 -4
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4059220d806257737dc29e65f4539e82e36a8c44
|
4
|
+
data.tar.gz: 1b0c4294c22a09525f19f050fc2a2bdbccc4f374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 710e9e5d14f5397473c63a855af0f6d0755ef252eb9e6372c5f1dc1081bb62ea01813da466e2baac4c7d552d5b2d5108e5bddb0411e2cabd3ba0e252fbc34ad1
|
7
|
+
data.tar.gz: 9d2dda1389655992ebf9c3406011fc881b622d449a9e9196093e3c3f5b762e63688c310f468f564af471eaf94d8d20eb2052adc255bbef8ae56f7f2968b97514
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rpi_gpio (0.1.2)
|
5
|
+
|
1
6
|
GEM
|
2
7
|
remote: https://rubygems.org/
|
3
8
|
specs:
|
4
9
|
rake (10.4.2)
|
5
|
-
rake-compiler (0.9.
|
10
|
+
rake-compiler (0.9.5)
|
6
11
|
rake
|
7
12
|
|
8
13
|
PLATFORMS
|
@@ -10,3 +15,4 @@ PLATFORMS
|
|
10
15
|
|
11
16
|
DEPENDENCIES
|
12
17
|
rake-compiler
|
18
|
+
rpi_gpio!
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#rpi_gpio v0.1.
|
1
|
+
#rpi_gpio v0.1.3
|
2
2
|
|
3
3
|
Ruby conversion of [RPi.GPIO Python module](https://pypi.python.org/pypi/RPi.GPIO)
|
4
4
|
|
@@ -47,11 +47,11 @@ to receive either `true` or `false`.
|
|
47
47
|
|
48
48
|
You can use the additional hash argument `:pull` to apply a pull-up or pull-down resistor to the input pin like so:
|
49
49
|
```
|
50
|
-
RPi::GPIO.setup PIN_NUM, as: input, pull: :down
|
50
|
+
RPi::GPIO.setup PIN_NUM, as: :input, pull: :down
|
51
51
|
# or
|
52
|
-
RPi::GPIO.setup PIN_NUM, as: input, pull: :up
|
52
|
+
RPi::GPIO.setup PIN_NUM, as: :input, pull: :up
|
53
53
|
# or (not necessary; :off is the default value)
|
54
|
-
RPi::GPIO.setup PIN_NUM, as: input, pull: :off
|
54
|
+
RPi::GPIO.setup PIN_NUM, as: :input, pull: :off
|
55
55
|
```
|
56
56
|
|
57
57
|
####Output
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpi_gpio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Lowery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
12
|
-
dependencies:
|
11
|
+
date: 2015-01-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake-compiler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description: Ruby conversion of RPi.GPIO Python module
|
14
28
|
email: nick.a.lowery@gmail.com
|
15
29
|
executables: []
|