Skip to content

Commit debd029

Browse files
author
caternuson
committed
remove stubbed out func, typos
1 parent 8adfaee commit debd029

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

adafruit_ht16k33/segments.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,6 @@ def ampm(self, value):
277277
if self._auto_write:
278278
self.show()
279279

280-
"""need something like this to keep ampm indicator
281-
and colons from being turned off with print?"""
282-
# def print(self, value):
283-
# ampm = self.ampm
284-
# super().print(value)
285-
# if ampm:
286-
# self.ampm = ampm
287-
288280
class Colon():
289281
"""Helper class for controlling the colons. Not intended for direct use."""
290282
MASKS = (0x02, 0x0C)
@@ -295,7 +287,7 @@ def __init__(self, disp, num_of_colons=1):
295287

296288
def __setitem__(self, key, value):
297289
if key > self._num_of_colons - 1:
298-
raise ValueError("Trying to set a non-existant colon.")
290+
raise ValueError("Trying to set a non-existent colon.")
299291
current = self._disp._get_buffer(0x04)
300292
if value:
301293
self._disp._set_buffer(0x04, current | self.MASKS[key])
@@ -306,5 +298,5 @@ def __setitem__(self, key, value):
306298

307299
def __getitem__(self, key):
308300
if key > self._num_of_colons - 1:
309-
raise ValueError("Trying to access a non-existant colon.")
301+
raise ValueError("Trying to access a non-existent colon.")
310302
return bool(self._disp._get_buffer(0x04) & self.MASKS[key])

0 commit comments

Comments
 (0)