From 9f1c3562dec4e1542ca559f1122f3b19014104a0 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 14 Mar 2019 13:52:27 -0700 Subject: [PATCH] Use a tuple so that POSITIONS can be long lived. --- adafruit_ht16k33/segments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_ht16k33/segments.py b/adafruit_ht16k33/segments.py index 5c2ff03..305748b 100755 --- a/adafruit_ht16k33/segments.py +++ b/adafruit_ht16k33/segments.py @@ -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."""