Skip to content

Commit fa1275c

Browse files
authored
Merge pull request #15 from caternuson/iss13b
Looks good to me, as well!
2 parents b545d77 + e7829e4 commit fa1275c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

adafruit_ht16k33/segments.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,9 @@ def _number(self, number):
210210

211211
class Seg7x4(Seg14x4):
212212
"""Numeric 7-segment display. It has the same methods as the alphanumeric display, but only
213-
supports displaying decimal and hex digits, period and a minus sign."""
213+
supports displaying a limited set of characters."""
214214
POSITIONS = [0, 2, 6, 8] # The positions of characters.
215215

216-
def print(self, value):
217-
"""Print the value to the display."""
218-
if isinstance(value, (int, float)):
219-
self._number(value)
220-
else:
221-
raise ValueError('Unsupported display value type: {}'.format(type(value)))
222-
if self._auto_write:
223-
self.show()
224-
225216
def scroll(self, count=1):
226217
"""Scroll the display by specified number of places."""
227218
if count >= 0:

0 commit comments

Comments
 (0)