From 04fdbfc4cf335943513973a51581e681fd224a13 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Mon, 27 Jan 2020 09:47:32 -0800 Subject: [PATCH] Don't limit hex numbers, no reason to. --- adafruit_ht16k33/segments.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/adafruit_ht16k33/segments.py b/adafruit_ht16k33/segments.py index 256539d..a22fdcf 100755 --- a/adafruit_ht16k33/segments.py +++ b/adafruit_ht16k33/segments.py @@ -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)