ladder_drive 0.5.0 → 0.5.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
  SHA1:
3
- metadata.gz: 5139eaf8a467986626c8f4cbe5b819819ed495c0
4
- data.tar.gz: e7e3bae04896ccfd9515c77c4e3457058861e26b
3
+ metadata.gz: 4a51d18cc531802a5947dc4e2c8bbd0f4b6f275e
4
+ data.tar.gz: d629a04642bbbfbdc0a7d70b4f4660b068e66262
5
5
  SHA512:
6
- metadata.gz: b321b78ab6bc3a1fe6a84b840c3961b70233d535a8830b9327300e129c922ccc3312432af44c468d101c94853d0971baeb2cc509e9c0b8b0ad41d00565074b99
7
- data.tar.gz: 7ccdbc826b357d71587f49f59feb7a5f2183e5046debf9f9608d8bc20ebab7433eb4fa2548b47235b5b6fc6070ba4b684641fe9bc8c34596c02bfb2a56daa7e1
6
+ metadata.gz: acc407dcefc6b258c8a6b4a22a43b33070e78a9611a7997b7df103e0ce17eff99fba377cce6911bf5ffcc139e122b8b29cadd4bad473527d34971c235a026592
7
+ data.tar.gz: 8bd5531dfb0b7405b8ec4bd1e044c98aa70a6e2ffd710dbffca5b2a2fbefb1c104d1d5820c4e2d7e246328be92c302707c8ec5159b65af6e518a869be5ca2d3a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ladder_drive (0.5.0)
4
+ ladder_drive (0.5.1)
5
5
  activesupport (~> 4.2, >= 4.2.7)
6
6
  pi_piper
7
7
  thor (~> 0)
@@ -22,5 +22,5 @@
22
22
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
24
  module LadderDrive
25
- VERSION = "0.5.0"
25
+ VERSION = "0.5.1"
26
26
  end
@@ -53,7 +53,7 @@ module Raspberrypi
53
53
  rescue NoMethodError
54
54
  puts "WARN: defention of io is missing!"
55
55
  rescue LoadError
56
- puts "WARN: pi_piper is not available this system!"
56
+ puts "WARN: pi_piper is not available in this system!"
57
57
  end
58
58
 
59
59
  def sync_input
@@ -17,8 +17,32 @@ plc:
17
17
  cpu: kv-5000
18
18
  protocol: kv_protocol
19
19
  host: 192.168.0.11
20
- # port: 8501
20
+ # port: 8501
21
21
 
22
+ # Raspberry Pi
23
+ raspberrypi:
24
+ cpu: Raspberry Pi
25
+ io: # assign gpio to x and y
26
+ inputs:
27
+ x0:
28
+ pin: 4 # gpio no
29
+ pull: up # up | down | off
30
+ invert: true
31
+ x1:
32
+ pin: 17
33
+ pull: up
34
+ invert: true
35
+ x2:
36
+ pin: 27
37
+ pull: up
38
+ invert: true
39
+ outputs:
40
+ y0:
41
+ pin: 18
42
+ y1:
43
+ pin: 23
44
+ y2:
45
+ pin: 42
22
46
 
23
47
  # default section
24
48
  default:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ladder_drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuyoshi Ito