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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/time7segment.rb +3 -3
- metadata +7 -7
- 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: 3a3eceda1f4bb5434a1cd143c2a112d927e1ba82
|
4
|
+
data.tar.gz: 8e3c493222101303a007ecf1b1dc6e5a404e6660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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.
|
31
|
+
def initialize(gpio=%w(22 27 17 24 11 4 23 8 20 10 18 25), refresh: 0.0055)
|
32
32
|
|
33
|
-
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.
|
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-
|
34
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
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.
|
42
|
+
version: '0.2'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
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.
|
52
|
+
version: '0.2'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: 0.2.2
|
56
56
|
description:
|
57
57
|
email: james@r0bertson.co.uk
|
58
58
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|