Skip to content

Commit 8282227

Browse files
committed
Small fix in the Pixels documentation
1 parent 671c2fe commit 8282227

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/modulino/pixels.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def set_color(self, idx: int, rgb: ModulinoColor, brightness: int = 100) -> None
128128
Sets the color of the given LED index to the given color.
129129
130130
Parameters:
131-
idx (int): The index of the LED.
131+
idx (int): The index of the LED (0..7).
132132
rgb (ModulinoColor): The color of the LED.
133133
brightness (int): The brightness of the LED. It should be a value between 0 and 100.
134134
"""
@@ -145,7 +145,7 @@ def set_rgb(self, idx: int, r: int, g: int, b: int, brightness: int = 100) -> No
145145
Set the color of the given LED index to the given RGB values.
146146
147147
Parameters:
148-
idx (int): The index of the LED.
148+
idx (int): The index of the LED (0..7).
149149
r (int): The red value of the color.
150150
g (int): The green value of the color.
151151
b (int): The blue value of the color.
@@ -158,7 +158,7 @@ def clear(self, idx: int) -> None:
158158
Turns off the LED at the given index.
159159
160160
Parameters:
161-
idx (int): The index of the LED.
161+
idx (int): The index of the LED (0..7).
162162
"""
163163
self.set_color(idx, ModulinoColor(0, 0, 0), 0)
164164

@@ -176,9 +176,6 @@ def clear_range(self, start: int, end: int) -> None:
176176
def clear_all(self) -> None:
177177
"""
178178
Turns all the LEDs off.
179-
180-
Parameters:
181-
idx (int): The index of the LED
182179
"""
183180
self.data = bytearray([0xE0] * NUM_LEDS * 4)
184181

0 commit comments

Comments
 (0)