Skip to content

Commit

Permalink
Initialize callback array
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeharker committed Nov 5, 2024
1 parent 5995cac commit 8e5eb7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adafruit_neotrellis/multitrellis.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def __init__(self, neotrellis_array: List[List[NeoTrellis]]):
self._width = col_size_sum[self._cols - 1]
self._height = row_size_sum[self._rows - 1]
self._key_pads: List[List[NeoTrellis]] = []
self._callbacks: List[List[Optional[CallbackType]]] = [
[None for _ in range(self._width)] for _ in range(self._height)
]

for y in range(self._height):
self._key_pads.append([])
Expand Down

0 comments on commit 8e5eb7b

Please sign in to comment.