Skip to content

Commit d9aabea

Browse files
committed
add fill wrapper using the pixelbuf_fill helper
1 parent c6ea2e9 commit d9aabea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

neopixel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,6 @@ def show(self):
151151
it may be done asynchronously."""
152152
neopixel_write(self.pin, self.buf)
153153

154+
def fill(self, color):
155+
"""Colors all pixels the given ***color***."""
156+
_pixelbuf.fill(self, color)

0 commit comments

Comments
 (0)