rpi_rgb 0.1.0 → 0.1.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: 2499ea81bec1310dfc129036793098ad75e680a8
4
- data.tar.gz: 1fa31362a8abee8c592f81ec8d02953dcb55eb8e
3
+ metadata.gz: 9cc7fcecc116627ef4c37e58ff1e7b804e7168c7
4
+ data.tar.gz: cca752849ec8eb85d9be27226eaf6c9e327d1877
5
5
  SHA512:
6
- metadata.gz: 83e9218bb7452a936283c470bfb8232a446d58d39bc4112a7619a8f0c17280d33c942774de7c7f4b5bc1d36f5d85cf031f3cf9ddea8b2fe907d43230976ef85c
7
- data.tar.gz: b87eb2e7a60513496e8ee71297bdce8b1189573fe7d25dc27572144680a15f959e34b8bdaed908a8bdf5d93b6db26f8375951ada1de6f096a4e28ea81c7b7832
6
+ metadata.gz: eea7d867ab869228bc33847d2028bd86fc61e0c0e8cbddd8d59d1bf29ce0edec082319ed7ab823615243480ea6e3b2195455634e02917526233d97c40df319f7
7
+ data.tar.gz: caeb0db06258b3d51a2c602d3e1e81703df48844bd73d28e52f2fbf6e7cd90c2d295e75873bea7addc9856f1da58633978a767788e2adc999fb4052afe77be2c
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- '�Q \Y��H�c��cT���E
2
- ���:���hL�:"5l�ki����e�$n���ߢ���?�}T�[$�J�T��b�P�CDMȞ�9�ْ�qQ[��sI���of�ؐ�BGi�Z�q��E[w`�M~���7�gA�H�
3
- )+��n�n���X�NE��K���.�,��M1�x��^��8�Bjߎ�DJ,e�/�8Ą�n4�QnPh8��50Q�y�E3�9~)���w�5�[* >՝ ��?h�LE�:
1
+ v��.��m�����5�>l�`��lRbՆ��� 6�>x�I���2�c�$�j�%��5�Ü�����{��Q�����{-6�d�f�踁�|�=>�X������@(�g"���i5)�dIV��7�ѯ*A,�����<]|d-xx`��tD��F���ϭ5VB��GTs�F��1|���f@tO,1�f�>=��HUGw1�t-��i��/OE'�L��������Z6RZ�m���z�E.S�h�p�
data/lib/rpi_rgb.rb CHANGED
@@ -29,7 +29,7 @@ class RPiRGB
29
29
  RPiLed.new(x, brightness: brightness, smooth: smooth)
30
30
  end
31
31
 
32
- @presets = presets
32
+ @brightness, @presets = presets, brightness
33
33
 
34
34
  end
35
35
 
@@ -50,16 +50,16 @@ class RPiRGB
50
50
  case val
51
51
 
52
52
  when 'red'
53
- mix 100, 0, 0
53
+ mix @brightness, 0, 0
54
54
 
55
55
  when 'green'
56
- mix 0, 100, 0
56
+ mix 0, @brightness, 0
57
57
 
58
58
  when 'blue'
59
- mix 0, 0, 100
59
+ mix 0, 0, @brightness
60
60
 
61
61
  when 'white'
62
- mix 100, 100, 100
62
+ mix @brightness, @brightness, @brightness
63
63
 
64
64
  else
65
65
 
@@ -92,4 +92,4 @@ class RPiRGB
92
92
  end
93
93
 
94
94
 
95
- end
95
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpi_rgb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file