@@ -128,7 +128,7 @@ def set_color(self, idx: int, rgb: ModulinoColor, brightness: int = 100) -> None
128
128
Sets the color of the given LED index to the given color.
129
129
130
130
Parameters:
131
- idx (int): The index of the LED.
131
+ idx (int): The index of the LED (0..7) .
132
132
rgb (ModulinoColor): The color of the LED.
133
133
brightness (int): The brightness of the LED. It should be a value between 0 and 100.
134
134
"""
@@ -145,7 +145,7 @@ def set_rgb(self, idx: int, r: int, g: int, b: int, brightness: int = 100) -> No
145
145
Set the color of the given LED index to the given RGB values.
146
146
147
147
Parameters:
148
- idx (int): The index of the LED.
148
+ idx (int): The index of the LED (0..7) .
149
149
r (int): The red value of the color.
150
150
g (int): The green value of the color.
151
151
b (int): The blue value of the color.
@@ -158,7 +158,7 @@ def clear(self, idx: int) -> None:
158
158
Turns off the LED at the given index.
159
159
160
160
Parameters:
161
- idx (int): The index of the LED.
161
+ idx (int): The index of the LED (0..7) .
162
162
"""
163
163
self .set_color (idx , ModulinoColor (0 , 0 , 0 ), 0 )
164
164
@@ -176,9 +176,6 @@ def clear_range(self, start: int, end: int) -> None:
176
176
def clear_all (self ) -> None :
177
177
"""
178
178
Turns all the LEDs off.
179
-
180
- Parameters:
181
- idx (int): The index of the LED
182
179
"""
183
180
self .data = bytearray ([0xE0 ] * NUM_LEDS * 4 )
184
181
0 commit comments