Skip to content

Commit 21ecba6

Browse files
committed
Removed artifical limiting of 7x4 display (LOL)
I needed more LOL'ing in my life, and a 7x4 segment display can help with this. However, adafruit_ht16k33 filters this out for the 7x4 display which makes me super sad 😢. This change allows the use of both upper and lower case L's and O's. (also, matrix.py and segments.py had the eXecutable bit set, which has been dropped) Fixes: #79 Signed-off-by: Dave Walker (Daviey) <[email protected]>
1 parent 4eed803 commit 21ecba6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

adafruit_ht16k33/matrix.py

100755100644
File mode changed.

adafruit_ht16k33/segments.py

100755100644
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,12 @@ def _put(self, char, index=0):
373373
elif char == ";":
374374
self._set_buffer(4, 0x00)
375375
return
376+
elif char in "lL":
377+
self._set_buffer(index, 0b00111000)
378+
return
379+
elif char in "oO":
380+
self._set_buffer(index, 0b00111111)
381+
return
376382
else:
377383
return
378384
self._set_buffer(index, NUMBERS[character])

0 commit comments

Comments
 (0)