Skip to content

Commit

Permalink
Merge pull request #112 from wkuranowski/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect handling of the "-" character on 7x4 segments
  • Loading branch information
makermelissa authored Jan 31, 2023
2 parents 94453bf + d56c2aa commit 9b321db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adafruit_ht16k33/segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
0x40, # -
0x6E, # y
0x40, # -
0x40, # -
)


Expand Down Expand Up @@ -461,7 +462,7 @@ def _put(self, char: str, index: int = 0) -> None:
if char in "abcdefghijklmnopqrstuvwxy":
character = ord(char) - 97 + 10
elif char == "-":
character = 16
character = 36
elif char in "0123456789":
character = ord(char) - 48
elif char == " ":
Expand Down

0 comments on commit 9b321db

Please sign in to comment.