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

Commit c5d90b0

Browse files
committed
fix auto_write in fill
1 parent 6620df4 commit c5d90b0

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)