BACKLIGHT_PWM,
)
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
displays = []
def _refresh_display_area(self, rectangle):
"""Loop through dirty rectangles and redraw that area."""
img = self._buffer.convert("RGB").crop(astuple(rectangle))
- img = img.rotate(self._rotation, expand=True)
+ img = img.rotate(360 - self._rotation, expand=True)
display_rectangle = self._apply_rotation(rectangle)
img = img.crop(astuple(self._clip(display_rectangle)))
elif not value and self._refresh_thread.is_alive():
# Stop the thread
self._refresh_thread.join()
+ self._refresh_thread = None
@property
def brightness(self) -> float: