Skip to content

Commit

Permalink
Size pixels as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeharker committed Oct 28, 2024
1 parent 6a03d5e commit ab13a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_neotrellis/neotrellis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab13a2a

Please sign in to comment.