Skip to content

Commit 297b874

Browse files
authored
Merge pull request #55 from makermelissa/set_digit_raw
Don't limit hex numbers, no reason to
2 parents e8ad143 + 04fdbfc commit 297b874

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_ht16k33/segments.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,7 @@ def print(self, value, decimal=0):
166166
def print_hex(self, value):
167167
"""Print the value as a hexidecimal string to the display."""
168168
if isinstance(value, int):
169-
if 0 <= value <= 0xFFFF:
170-
self.print('{0:X}'.format(value))
171-
else:
172-
raise ValueError('Value out of displayable range: {}'.format(value))
169+
self.print('{0:X}'.format(value))
173170
else:
174171
self.print(value)
175172

0 commit comments

Comments
 (0)