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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f0db3a3d669a825cda9e65e2dce717fa81f5f28
4
- data.tar.gz: 144a7ca9b84650124bf5e7c1657933cc4360b928
3
+ metadata.gz: 13223ad957fe39110ff78d33ee0d8b9a7bb74665
4
+ data.tar.gz: c3a77e56476ebf5638b202ec4b985ec4f334fb79
5
5
  SHA512:
6
- metadata.gz: 2c09a5861e1307e2a858d23382c3b8e79fe52bcd53797f0533004de958bf326e81d79fa43ea5e98be9ef388baba02d8a4389b6dcbeda22bb38297f3a9f4a331b
7
- data.tar.gz: aeb3e751796ce623c0fe81e0e20fd146ccc7efecd20511ce8ef1fe110870c7c53e75ec36aa02d76d385d4c9144a3381bc04c08ee6d0fd60390ef6930cb5a67ad
6
+ metadata.gz: d31925a385c667b3b87ba3fd78eda3aab1dbac6b8f227dc85641c6708850bfa6350960574da02c3897f8dc2f24a7d9d8e82201d7dfb435f306d31784aa7a140d
7
+ data.tar.gz: 40095ce9025321805f3e6eb3b1bbd0e8d3fecd34d5ddc41977383864abfcdc254ba104206139972da89ac2ebe7af2829bb715e24f27b3f231a569061badca13d
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(%w(red green blue)).to_h
133
- #puts 'h: ' + h.inspect
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humble_rpi-plugin-led
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file