Skip to content

Commit d4ac2a9

Browse files
committed
Add colortype for colors
1 parent 63cd7f6 commit d4ac2a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_neotrellis/multitrellis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from typing import List, Optional, Sequence
3333

3434
from adafruit_neotrellis.neotrellis import CallbackType, NeoTrellis
35-
from adafruit_seesaw.neopixel import PixelType
35+
from adafruit_seesaw.neopixel import ColorType
3636

3737

3838
class MultiTrellis:
@@ -131,7 +131,7 @@ def get_callback(self, x: int, y: int) -> Optional[CallbackType]:
131131
pad = self._key_pads[y][x]
132132
return pad.callbacks[pad.key_index(x, y)]
133133

134-
def color(self, x: int, y: int, color: PixelType):
134+
def color(self, x: int, y: int, color: ColorType):
135135
"""Set the color of the pixel at index x, y measured from the top
136136
lefthand corner of the matrix"""
137137
pad = self._key_pads[y][x]

0 commit comments

Comments
 (0)