X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/a53c930973a24a7c55db9448e45d7ca7974cb56e..5addeea21db64285a19902913dde42a98546625c:/displayio/_displaycore.py diff --git a/displayio/_displaycore.py b/displayio/_displaycore.py index fd42b4d..57e8dd6 100644 --- a/displayio/_displaycore.py +++ b/displayio/_displaycore.py @@ -254,7 +254,8 @@ class _DisplayCore: if not overlaps: return False - # Expand the area if we have multiple pixels per byte and we need to byte align the bounds + # Expand the area if we have multiple pixels per byte and we need to byte + # align the bounds if self.colorspace.depth < 8: pixels_per_byte = ( 8 // self.colorspace.depth * self.colorspace.bytes_per_cell @@ -396,11 +397,11 @@ class _DisplayCore: """ self._send(data_type, chip_select, data) - def begin_transaction(self) -> None: + def begin_transaction(self) -> bool: """ Begin Bus Transaction """ - self._begin_transaction() + return self._begin_transaction() def end_transaction(self) -> None: """