Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit ec93a6a

Browse files
authored
Merge pull request #5 from caternuson/fill_auto
Fix auto_write in fill()
2 parents 6620df4 + c5d90b0 commit ec93a6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_pypixelbuf.py

+2
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,6 @@ def fill(pixelbuf, color):
321321
pixelbuf.auto_write = False
322322
for i, _ in enumerate(pixelbuf):
323323
pixelbuf[i] = color
324+
if auto_write:
325+
pixelbuf.show()
324326
pixelbuf.auto_write = auto_write

0 commit comments

Comments
 (0)