Skip to content

Commit

Permalink
Fix color swapping during shift()
Browse files Browse the repository at this point in the history
This fixes the color swapping during shift() as noted in #102
  • Loading branch information
BlitzCityDIY committed Mar 11, 2024
1 parent 7269d5d commit 022317d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_ht16k33/matrix.py
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 022317d

Please sign in to comment.