No. This one.
https://learn.adafruit.com/adafruit-neotrellis?view=all
I think I can interrupt:
The object is ¨trellis¨
Here is the Class and interrupt function:
https://github.com/adafruit/Adafruit_Cir...trellis.py
I try this
https://learn.adafruit.com/adafruit-neotrellis?view=all
I think I can interrupt:
The object is ¨trellis¨
Here is the Class and interrupt function:
class NeoTrellis(Keypad): """Driver for the Adafruit NeoTrellis.""" def __init__(self, i2c_bus, interrupt=False, addr=_NEO_TRELLIS_ADDR, drdy=None): super().__init__(i2c_bus, addr, drdy) self.interrupt_enabled = interrupt self.callbacks = [None] * _NEO_TRELLIS_NUM_KEYS self.pixels = NeoPixel(self, _NEO_TRELLIS_NEOPIX_PIN, _NEO_TRELLIS_NUM_KEYS)Here is the full Class
https://github.com/adafruit/Adafruit_Cir...trellis.py
I try this
While True: if trellis.interrupt_enabled() == True: print("test") else: trellis.sync() time.sleep(0.02)I get the error
Error:If trellis.interrupt_enabled() == True:
TypeError: 'bool' object is not callable
Im out of ideas...