humble_rpi-plugin-led 0.3.0 → 0.3.1
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/humble_rpi-plugin-led.rb +8 -7
- metadata +1 -1
- 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: 13223ad957fe39110ff78d33ee0d8b9a7bb74665
|
4
|
+
data.tar.gz: c3a77e56476ebf5638b202ec4b985ec4f334fb79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d31925a385c667b3b87ba3fd78eda3aab1dbac6b8f227dc85641c6708850bfa6350960574da02c3897f8dc2f24a7d9d8e82201d7dfb435f306d31784aa7a140d
|
7
|
+
data.tar.gz: 40095ce9025321805f3e6eb3b1bbd0e8d3fecd34d5ddc41977383864abfcdc254ba104206139972da89ac2ebe7af2829bb715e24f27b3f231a569061badca13d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -45,11 +45,13 @@ class HumbleRPiPluginLed
|
|
45
45
|
|
46
46
|
|
47
47
|
presets = {
|
48
|
+
pink: '#FFC0CB',
|
48
49
|
purple: '#800080',
|
49
|
-
yellow: '#FFFF00',
|
50
|
-
orange: '#FFA500',
|
51
50
|
turquoise: '#40E0D0',
|
52
|
-
steelblue: '#4682B4'
|
51
|
+
steelblue: '#4682B4',
|
52
|
+
yellow: '#FFFF00',
|
53
|
+
orange: '#FFA500',
|
54
|
+
goldenrod: '#DAA520'
|
53
55
|
}
|
54
56
|
|
55
57
|
rgb_led = RPiRGB.new(rgb[:pins], presets: presets)
|
@@ -129,8 +131,8 @@ class HumbleRPiPluginLed
|
|
129
131
|
if state == 'on' then
|
130
132
|
|
131
133
|
a = ((@led.length-1)..@led.length+1).map{|x| x.to_s.to_sym}
|
132
|
-
h = a.zip(%
|
133
|
-
|
134
|
+
h = a.zip(%i(red green blue)).to_h
|
135
|
+
|
134
136
|
colour = h[identifier.to_sym]
|
135
137
|
|
136
138
|
|
@@ -152,11 +154,10 @@ class HumbleRPiPluginLed
|
|
152
154
|
end
|
153
155
|
|
154
156
|
def start()
|
155
|
-
|
156
157
|
|
157
158
|
end
|
158
159
|
|
159
160
|
alias on_start start
|
160
161
|
|
161
162
|
|
162
|
-
end
|
163
|
+
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|