X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/b39699fa4b1ed4838b72d068f0c13fdf62ef95de..572a93198fd9e71d47e408e0c0f2fee21f6a3b9f:/displayio/_epaperdisplay.py diff --git a/displayio/_epaperdisplay.py b/displayio/_epaperdisplay.py index 1f0731c..59ed690 100644 --- a/displayio/_epaperdisplay.py +++ b/displayio/_epaperdisplay.py @@ -298,6 +298,7 @@ class EPaperDisplay: self._finish_refresh() while self._refreshing: # TODO: Add something here that can change self._refreshing + # or add something in _background() pass self._start_refresh() @@ -371,10 +372,6 @@ class EPaperDisplay: # If there is no overlap then we're done. if not self._core.clip_area(area, clipped): return True - print("---------------") - print(area.x1, area.y1, area.x2, area.y2) - print(clipped.x1, clipped.y1, clipped.x2, clipped.y2) - print("---------------") subrectangles = 1 rows_per_buffer = clipped.height() pixels_per_word = 32 // self._core.colorspace.depth @@ -450,7 +447,7 @@ class EPaperDisplay: if (pass_index == 1 and self._color_bits_inverted) or ( pass_index == 0 and self._black_bits_inverted ): - for i, _ in enumerate(buffer): + for i in range(buffer_size): buffer[i] = ~buffer[i] if not self._core.begin_transaction():