Skip to content

Commit f8cbd5f

Browse files
authored
Merge pull request #109 from DJDevon3/main
Add alphabetical characters for 7x4 segments
2 parents 67c285f + bd135ce commit f8cbd5f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

adafruit_ht16k33/segments.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,25 @@
138138
0x5E, # d
139139
0x79, # E
140140
0x71, # F
141+
0x3D, # G
142+
0x76, # H
143+
0x30, # I
144+
0x1E, # J
145+
0x40, # -
146+
0x38, # L
147+
0x40, # -
148+
0x54, # n
149+
0x5C, # o
150+
0x73, # P
151+
0x67, # q
152+
0x50, # R
153+
0x6D, # S
154+
0x78, # t
155+
0x3E, # U
156+
0x1C, # v
157+
0x40, # -
158+
0x40, # -
159+
0x6E, # y
141160
0x40, # -
142161
)
143162

@@ -439,7 +458,7 @@ def _put(self, char: str, index: int = 0) -> None:
439458
if char == ".":
440459
self._set_buffer(index, self._get_buffer(index) | 0b10000000)
441460
return
442-
if char in "abcdef":
461+
if char in "abcdefghijklmnopqrstuvwxy":
443462
character = ord(char) - 97 + 10
444463
elif char == "-":
445464
character = 16

0 commit comments

Comments
 (0)