File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 25
25
================
26
26
27
27
"""
28
-
29
28
from adafruit_ht16k33 .ht16k33 import HT16K33
30
29
31
30
__version__ = "0.0.0-auto.0"
32
31
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_HT16K33.git"
33
32
34
33
class Matrix8x8 (HT16K33 ):
35
34
"""A single matrix."""
36
- columns = 8
37
- rows = 8
35
+ _columns = 8
36
+ _rows = 8
38
37
39
38
def pixel (self , x , y , color = None ):
40
39
"""Get or set the color of a given pixel."""
@@ -109,10 +108,17 @@ def shift_down(self, rotate=False):
109
108
if self ._auto_write :
110
109
self .show ()
111
110
111
+ @property
112
+ def columns (self ):
113
+ return self ._columns
114
+
115
+ @property
116
+ def rows (self ):
117
+ return self ._rows
118
+
112
119
class Matrix16x8 (Matrix8x8 ):
113
120
"""The matrix wing."""
114
- columns = 16
115
- rows = 8
121
+ _columns = 16
116
122
117
123
def pixel (self , x , y , color = None ):
118
124
"""Get or set the color of a given pixel."""
You can’t perform that action at this time.
0 commit comments