Skip to content

Commit

Permalink
Merge pull request #118 from adafruit/matrix_fill_color_swap
Browse files Browse the repository at this point in the history
Fix color swapping during shift()
  • Loading branch information
makermelissa committed Mar 13, 2024
2 parents 7269d5d + feb08ef commit fd0de16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_ht16k33/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def pixel(self, x: int, y: int, color: Optional[int] = None) -> Optional[int]:
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:
Expand Down

0 comments on commit fd0de16

Please sign in to comment.