time7segment 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61cbcfd1bbd9338f9239559bdbe85d5f6b88febe
4
- data.tar.gz: 2c4a3b043d0ec4720c1a9bedd5fbea2f3a1a005b
3
+ metadata.gz: 3a3eceda1f4bb5434a1cd143c2a112d927e1ba82
4
+ data.tar.gz: 8e3c493222101303a007ecf1b1dc6e5a404e6660
5
5
  SHA512:
6
- metadata.gz: a055f59f679beafc745ffd37c03106a9120ab4fc257a1be4872f742c8049c92fb0b05ef532dbc88aa9c99d3f0e295aa854a749eccbee21a5125aea655e1ec93a
7
- data.tar.gz: 6148261d32f7b23f9cbbf31c672362ddb48d68e202ea36113d29e01ca971f31f1b1bb55060bc49a0345401fc45727d6b1f38ce307759d5411a30b7b2db81d1f7
6
+ metadata.gz: c6c59ceb19484715c39fbeee2363454446277f5eea2d873c5c0035a309ecdb8e9619aa262d602f86b038650ebe8faac4f501fc1a62d49a37f850910b8e91b7fc
7
+ data.tar.gz: 1242665d8c668fdd524ee1c70dc87a3f3c78794c998dcf642d9fb774a4f133744055f953c792d9e5bf413ac095f2f3dfe1cfd88bbbf6c94f76d7c5a3ef23fff0
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/time7segment.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rpi'
3
+ require 'simple_raspberrypi'
4
4
 
5
5
 
6
6
  # file: time7segment.rb
@@ -28,9 +28,9 @@ require 'rpi'
28
28
  class Time7Segment
29
29
 
30
30
  # d1 d2 d3 d4 a b c d e f g dp
31
- def initialize(gpio=%w(22 27 17 24 11 4 23 8 20 10 18 25), refresh: 0.0045)
31
+ def initialize(gpio=%w(22 27 17 24 11 4 23 8 20 10 18 25), refresh: 0.0055)
32
32
 
33
- pins = RPi.new(gpio).pins
33
+ pins = SimpleRaspberryPi.new(gpio).pins
34
34
  @digits, @segments, @refresh = pins.take(4), pins.slice(4..-1), refresh
35
35
 
36
36
  a = [0x7E, 0x30, 0x6D, 0x79, 0x33, 0x5B, 0x5F, 0x70, 0x7F, 0x7B]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time7segment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,28 +31,28 @@ cert_chain:
31
31
  +hK+FacNWYYl7NLDoAQDnx8UxWfUl7WpWi7B/U09XsOHNwhaTJsZ6GeVkdVm1E//
32
32
  W1B8FmCNgggaYQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-02-27 00:00:00.000000000 Z
34
+ date: 2016-04-09 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
- name: rpi
37
+ name: simple_raspberrypi
38
38
  requirement: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '0.4'
42
+ version: '0.2'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 0.4.5
45
+ version: 0.2.2
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '0.4'
52
+ version: '0.2'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 0.4.5
55
+ version: 0.2.2
56
56
  description:
57
57
  email: james@r0bertson.co.uk
58
58
  executables: []
metadata.gz.sig CHANGED
Binary file