Skip to content

Commit 04e7ece

Browse files
author
caternuson
committed
add doc string for print
1 parent 0f55bfd commit 04e7ece

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_ht16k33/segments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
class Seg14x4(HT16K33):
150150
"""Alpha-numeric, 14-segment display."""
151151
def print(self, value):
152+
"""Print the value to the display."""
152153
if isinstance(value, (str)):
153154
self._text(value)
154155
elif isinstance(value, (int, float)):
@@ -211,6 +212,7 @@ class Seg7x4(Seg14x4):
211212
POSITIONS = [0, 2, 6, 8] # The positions of characters.
212213

213214
def print(self, value):
215+
"""Print the value to the display."""
214216
if isinstance(value, (int, float)):
215217
self._number(value)
216218
else:

0 commit comments

Comments
 (0)