Skip to content

Commit

Permalink
Merge pull request #35 from adafruit/tannewt-patch-1
Browse files Browse the repository at this point in the history
Use a tuple so that POSITIONS can be long lived.
  • Loading branch information
makermelissa authored Mar 15, 2019
2 parents 1eb9d08 + 9f1c356 commit 100ec29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_ht16k33/segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _number(self, number):
class Seg7x4(Seg14x4):
"""Numeric 7-segment display. It has the same methods as the alphanumeric display, but only
supports displaying a limited set of characters."""
POSITIONS = [0, 2, 6, 8] # The positions of characters.
POSITIONS = (0, 2, 6, 8) # The positions of characters.

def scroll(self, count=1):
"""Scroll the display by specified number of places."""
Expand Down

0 comments on commit 100ec29

Please sign in to comment.