We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb6e167 commit 2956ddaCopy full SHA for 2956dda
library/rpi_ws281x/rpi_ws281x.py
@@ -173,6 +173,17 @@ def show(self):
173
str_resp = ws.ws2811_get_return_t_str(resp)
174
raise RuntimeError('ws2811_render failed with code {0} ({1})'.format(resp, str_resp))
175
176
+ def createPixelSubStrip(self, first, last=None, num=None):
177
+ """Create a PixelSubStrip starting with pixel `first`
178
+ Either specify the `num` of pixels or the `last` pixel.
179
+
180
+ All the methods of a PixelSubStrip are available on PixelStrip
181
+ objects.
182
183
+ Note: PixelSubStrips are not prevented from overlappping
184
+ """
185
+ return self.PixelSubStrip(self, first, last=last, num=num)
186
187
188
class PixelSubStrip:
189
"""A PixelSubStrip handles a subset of the pixels in a PixelStrip
0 commit comments