Skip to content

Commit fd0de16

Browse files
authored
Merge pull request #118 from adafruit/matrix_fill_color_swap
Fix color swapping during shift()
2 parents 7269d5d + feb08ef commit fd0de16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ht16k33/matrix.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def pixel(self, x: int, y: int, color: Optional[int] = None) -> Optional[int]:
245245
super()._pixel(y, x, (color >> 1) & 0x01)
246246
super()._pixel(y + 8, x, (color & 0x01))
247247
else:
248-
return super()._pixel(y, x) | super()._pixel(y + 8, x) << 1
248+
return super()._pixel(y, x) << 1 | super()._pixel(y + 8, x)
249249
return None
250250

251251
def fill(self, color: int) -> None:

0 commit comments

Comments
 (0)