Skip to content

Commit e8566ae

Browse files
authored
Merge pull request #80 from Daviey/moar_lolz
Removed artifical limiting of 7x4 display (LOL)
2 parents d0de1a6 + 7877f37 commit e8566ae

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

adafruit_ht16k33/matrix.py

100755100644
File mode changed.

adafruit_ht16k33/segments.py

100755100644
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ def _push(self, char: str):
340340

341341
def _put(self, char: str, index: int = 0):
342342
"""Put a character at the specified place."""
343+
# pylint: disable=too-many-return-statements
343344
if not 0 <= index <= 3:
344345
return
345346
char = char.lower()
@@ -362,6 +363,12 @@ def _put(self, char: str, index: int = 0):
362363
elif char == ";":
363364
self._set_buffer(4, 0x00)
364365
return
366+
elif char in "lL":
367+
self._set_buffer(index, 0b00111000)
368+
return
369+
elif char in "oO":
370+
self._set_buffer(index, 0b00111111)
371+
return
365372
else:
366373
return
367374
self._set_buffer(index, NUMBERS[character])

0 commit comments

Comments
 (0)