Merge pull request #118 from adafruit/matrix_fill_color_swap

Fix color swapping during shift()
This commit is contained in:
Melissa LeBlanc-Williams 2024-03-13 08:39:11 -07:00 committed by GitHub
commit fd0de16f70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -245,7 +245,7 @@ class Matrix8x8x2(Matrix8x8):
super()._pixel(y, x, (color >> 1) & 0x01)
super()._pixel(y + 8, x, (color & 0x01))
else:
return super()._pixel(y, x) | super()._pixel(y + 8, x) << 1
return super()._pixel(y, x) << 1 | super()._pixel(y + 8, x)
return None
def fill(self, color: int) -> None: