@@ -87,7 +87,7 @@ def set_range_rgb(self, index_from: int, index_to: int, r: int, g: int, b: int,
87
87
brightness (int): The brightness of the LED. It should be a value between 0 and 100.
88
88
89
89
Returns:
90
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
90
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
91
91
"""
92
92
self .set_range_color (index_from , index_to , ModulinoColor (r , g , b ), brightness )
93
93
return self
@@ -103,7 +103,7 @@ def set_range_color(self, index_from: int, index_to: int, color: ModulinoColor,
103
103
brightness (int): The brightness of the LED. It should be a value between 0 and 100.
104
104
105
105
Returns:
106
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
106
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
107
107
"""
108
108
for i in range (index_from , index_to + 1 ):
109
109
self .set_color (i , color , brightness )
@@ -120,7 +120,7 @@ def set_all_rgb(self, r: int, g: int, b: int, brightness: int = 100) -> 'Modulin
120
120
brightness (int): The brightness of the LED. It should be a value between 0 and 100.
121
121
122
122
Returns:
123
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
123
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
124
124
"""
125
125
self .set_all_color (ModulinoColor (r , g , b ), brightness )
126
126
return self
@@ -134,7 +134,7 @@ def set_all_color(self, color: ModulinoColor, brightness: int = 100) -> 'Modulin
134
134
brightness (int): The brightness of the LED. It should be a value between 0 and 100.
135
135
136
136
Returns:
137
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
137
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
138
138
"""
139
139
self .set_range_color (0 , NUM_LEDS - 1 , color , brightness )
140
140
return self
@@ -149,7 +149,7 @@ def set_color(self, idx: int, rgb: ModulinoColor, brightness: int = 100) -> 'Mod
149
149
brightness (int): The brightness of the LED. It should be a value between 0 and 100.
150
150
151
151
Returns:
152
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
152
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
153
153
"""
154
154
if idx < 0 or idx >= NUM_LEDS :
155
155
raise ValueError (f"LED index out of range { idx } (Valid: 0..{ NUM_LEDS - 1 } )" )
@@ -172,7 +172,7 @@ def set_rgb(self, idx: int, r: int, g: int, b: int, brightness: int = 100) -> 'M
172
172
brightness (int): The brightness of the LED. It should be a value between 0 and 100.
173
173
174
174
Returns:
175
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
175
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
176
176
"""
177
177
self .set_color (idx , ModulinoColor (r , g , b ), brightness )
178
178
return self
@@ -185,7 +185,7 @@ def clear(self, idx: int) -> 'ModulinoPixels':
185
185
idx (int): The index of the LED (0..7).
186
186
187
187
Returns:
188
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
188
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
189
189
"""
190
190
self .set_color (idx , ModulinoColor (0 , 0 , 0 ), 0 )
191
191
return self
@@ -199,7 +199,7 @@ def clear_range(self, start: int, end: int) -> 'ModulinoPixels':
199
199
end (int): The ending index (inclusive) of the range.
200
200
201
201
Returns:
202
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
202
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
203
203
"""
204
204
for i in range (start , end ):
205
205
self .clear (i )
@@ -210,7 +210,7 @@ def clear_all(self) -> 'ModulinoPixels':
210
210
Turns all the LEDs off.
211
211
212
212
Returns:
213
- ModulinoPixels: The object itself. Allows for daily chaining of methods.
213
+ ModulinoPixels: The object itself. Allows for daisy chaining of methods.
214
214
"""
215
215
self .data = bytearray ([0xE0 ] * NUM_LEDS * 4 )
216
216
return self
0 commit comments