diff --git a/luma/led_matrix/device.py b/luma/led_matrix/device.py index 7131d5e..0bf4289 100644 --- a/luma/led_matrix/device.py +++ b/luma/led_matrix/device.py @@ -423,7 +423,7 @@ def display(self, image): # Send 32 zero-bits to reset, then pixel values then n/2 zero-bits at end sz = image.width * image.height * 4 - buf = bytearray(4 + sz + ceil(image.width * image.height/8/2)) + buf = bytearray(4 + sz + ceil(image.width * image.height / 8 / 2)) m = self._mapping for idx, (r, g, b, a) in enumerate(image.getdata()):