Skip to content

Commit 9fba7b6

Browse files
committed
add docs for methods on parent class
1 parent 91a5e4e commit 9fba7b6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

neopixel.py

+12
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ class NeoPixel(_pixelbuf.PixelBuf):
9393
with neopixel.NeoPixel(NEOPIXEL, 10) as pixels:
9494
pixels[::2] = [RED] * (len(pixels) // 2)
9595
time.sleep(2)
96+
97+
.. py:method:: NeoPixel.show()
98+
99+
Shows the new colors on the pixels themselves if they haven't already
100+
been autowritten.
101+
102+
The colors may or may not be showing after this function returns because
103+
it may be done asynchronously.
104+
105+
.. py:method:: NeoPixel.fill(color)
106+
107+
Colors all pixels the given ***color***.
96108
"""
97109
bpp = None
98110
n = 0

0 commit comments

Comments
 (0)