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 +4 -4
- checksums.yaml.gz.sig +1 -3
- data/lib/rpi_rgb.rb +6 -6
- data.tar.gz.sig +0 -0
- 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: 9cc7fcecc116627ef4c37e58ff1e7b804e7168c7
|
4
|
+
data.tar.gz: cca752849ec8eb85d9be27226eaf6c9e327d1877
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eea7d867ab869228bc33847d2028bd86fc61e0c0e8cbddd8d59d1bf29ce0edec082319ed7ab823615243480ea6e3b2195455634e02917526233d97c40df319f7
|
7
|
+
data.tar.gz: caeb0db06258b3d51a2c602d3e1e81703df48844bd73d28e52f2fbf6e7cd90c2d295e75873bea7addc9856f1da58633978a767788e2adc999fb4052afe77be2c
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
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@t�O,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
|
53
|
+
mix @brightness, 0, 0
|
54
54
|
|
55
55
|
when 'green'
|
56
|
-
mix 0,
|
56
|
+
mix 0, @brightness, 0
|
57
57
|
|
58
58
|
when 'blue'
|
59
|
-
mix 0, 0,
|
59
|
+
mix 0, 0, @brightness
|
60
60
|
|
61
61
|
when 'white'
|
62
|
-
mix
|
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
metadata.gz.sig
CHANGED
Binary file
|