Skip to content
Merged
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
5 changes: 1 addition & 4 deletions adafruit_ht16k33/segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,7 @@ def print(self, value, decimal=0):
def print_hex(self, value):
"""Print the value as a hexidecimal string to the display."""
if isinstance(value, int):
if 0 <= value <= 0xFFFF:
self.print('{0:X}'.format(value))
else:
raise ValueError('Value out of displayable range: {}'.format(value))
self.print('{0:X}'.format(value))
else:
self.print(value)

Expand Down