Skip to content

Commit d56c2aa

Browse files
authored
Fix incorrect handling of the "-" character on 7x4 segments
1 parent 94453bf commit d56c2aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ht16k33/segments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
0x40, # -
159159
0x6E, # y
160160
0x40, # -
161+
0x40, # -
161162
)
162163

163164

@@ -461,7 +462,7 @@ def _put(self, char: str, index: int = 0) -> None:
461462
if char in "abcdefghijklmnopqrstuvwxy":
462463
character = ord(char) - 97 + 10
463464
elif char == "-":
464-
character = 16
465+
character = 36
465466
elif char in "0123456789":
466467
character = ord(char) - 48
467468
elif char == " ":

0 commit comments

Comments
 (0)