Skip to content

Commit 8e5eb7b

Browse files
committed
Initialize callback array
1 parent 5995cac commit 8e5eb7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_neotrellis/multitrellis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def __init__(self, neotrellis_array: List[List[NeoTrellis]]):
8989
self._width = col_size_sum[self._cols - 1]
9090
self._height = row_size_sum[self._rows - 1]
9191
self._key_pads: List[List[NeoTrellis]] = []
92+
self._callbacks: List[List[Optional[CallbackType]]] = [
93+
[None for _ in range(self._width)] for _ in range(self._height)
94+
]
9295

9396
for y in range(self._height):
9497
self._key_pads.append([])

0 commit comments

Comments
 (0)