adafruit_neotrellis

4x4 elastomer buttons and RGB LEDs

  • Author(s): Dean Miller

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_neotrellis.neotrellis.NeoTrellis(i2c_bus, interrupt=False, addr=46, drdy=None)

Driver for the Adafruit NeoTrellis.

activate_key(key, edge, enable=True)

Activate or deactivate a key on the trellis. Key is the key number from 0 to 16. Edge specifies what edge to register an event on and can be NeoTrellis.EDGE_FALLING or NeoTrellis.EDGE_RISING. enable should be set to True if the event is to be enabled, or False if the event is to be disabled.

sync()

read any events from the Trellis hardware and call associated callbacks