Skip to content

Removed artifical limiting of 7x4 display (LOL) #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified adafruit_ht16k33/matrix.py
100755 → 100644
Empty file.
7 changes: 7 additions & 0 deletions adafruit_ht16k33/segments.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def _push(self, char: str):

def _put(self, char: str, index: int = 0):
"""Put a character at the specified place."""
# pylint: disable=too-many-return-statements
if not 0 <= index <= 3:
return
char = char.lower()
Expand All @@ -362,6 +363,12 @@ def _put(self, char: str, index: int = 0):
elif char == ";":
self._set_buffer(4, 0x00)
return
elif char in "lL":
self._set_buffer(index, 0b00111000)
return
elif char in "oO":
self._set_buffer(index, 0b00111111)
return
else:
return
self._set_buffer(index, NUMBERS[character])
Expand Down