From ab13a2ada1b0c783b556a819900e834c379c092c Mon Sep 17 00:00:00 2001 From: George Harker Date: Mon, 28 Oct 2024 16:03:20 -0700 Subject: [PATCH] Size pixels as needed --- adafruit_neotrellis/neotrellis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_neotrellis/neotrellis.py b/adafruit_neotrellis/neotrellis.py index dc9d187..9a2dcf3 100755 --- a/adafruit_neotrellis/neotrellis.py +++ b/adafruit_neotrellis/neotrellis.py @@ -92,7 +92,7 @@ def __init__(self, i2c_bus, interrupt: bool = False, self.y_base = y_base self.interrupt_enabled = interrupt self.callbacks = [None] * _NEO_TRELLIS_NUM_KEYS - self.pixels = NeoPixel(self, _NEO_TRELLIS_NEOPIX_PIN, _NEO_TRELLIS_NUM_KEYS) + self.pixels = NeoPixel(self, _NEO_TRELLIS_NEOPIX_PIN, self.width * self.height) def activate_key(self, key: int, edge: int, enable: bool = True) -> None: """Activate or deactivate a key on the trellis. Key is the key number from