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

Fix auto_write in fill() #5

Merged
merged 1 commit into from
Jan 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions adafruit_pypixelbuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,6 @@ def fill(pixelbuf, color):
pixelbuf.auto_write = False
for i, _ in enumerate(pixelbuf):
pixelbuf[i] = color
if auto_write:
pixelbuf.show()
pixelbuf.auto_write = auto_write