adafruit / Adafruit_CircuitPython_NeoTrellis

CircuitPython library for the Adafruit RGB Trellis
MIT License
8 stars 14 forks source link

Interrupt not implemented for Python #14

Open moris526 opened 3 years ago

moris526 commented 3 years ago

Adafruits marks pin Nro 5 on Raspberry to use for interrupt (https://learn.adafruit.com/adafruit-neotrellis/circuitpython-code) but it is not used in the sample code. Nor can be use as it is

I bought 32 Noetrellis kits and really need that function

tannewt commented 3 years ago

What are you trying to do?

moris526 commented 3 years ago

What are you trying to do?

I am building a midi controller for synths. I bought one Neotrellis to try it out (im not a programmer) and worked fine with Arduino. Then I bought 31 more boards. Then I realized I need more processing speed in the MCU since it is communicating with PC. I bought Raspberry pi Zero. Now speed problem is solved but the Interrupt is not implemented for Rasp. And I really need it because it takes a long time to read the 32 boards and I need to check the serial port too . First time I post here.

Any advice?

tannewt commented 3 years ago

I'd recommend reading the interrupt pin with DigitalInOut before reading all of the neotrellis boards. That way you'll only read them all when something is pressed. I don't think you need interrupt support itself. You could also partition the boards so you only need to read a subset based on their isolated interrupt state.

tannewt commented 3 years ago

Also, make sure your I2C bus is clocked as fast as it works reliably. Going from 100khz to 400khz will give you a bit of speedup.

moris526 commented 3 years ago

Hi. Form the Adafruit forum I m told I have to enable the interrupt. https://forums.adafruit.com/viewtopic.php?f=47&t=178190

Can you give me hand with that?

tannewt commented 3 years ago

Please be patient. Dave should get back to you on the forum.

moris526 commented 3 years ago

OK. Thanks

cospin commented 1 month ago

Hey @moris526 I have a similar problem to yours. I've gone through all your posts on Adafruit, Arduino, etc. hehe

In the end, did you make any progress? I've managed to improve the latency. I would like to know how your project turned out.

moris526 commented 1 month ago

Hey Man. I just had to modifi the project cause i could not fix it.

I have a video on instagram moris.maybe

Theres been a long time since im not using it. But we can talk if you want

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: Cristian Ospina @.> Sent: Thursday, July 18, 2024 9:46:54 PM To: adafruit/Adafruit_CircuitPython_NeoTrellis @.> Cc: moris526 @.>; Mention @.> Subject: Re: [adafruit/Adafruit_CircuitPython_NeoTrellis] Interrupt not implemented for Python (#14)

Hey @moris526https://github.com/moris526 I have a similar problem to yours. I've gone through all your posts on Adafruit, Arduino, etc. hehe

In the end, did you make any progress? I've managed to improve the latency. I would like to know how your project turned out.

— Reply to this email directly, view it on GitHubhttps://github.com/adafruit/Adafruit_CircuitPython_NeoTrellis/issues/14#issuecomment-2237820607, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA6EM3B5IERNSYU6HSSFTMLZNBOX5AVCNFSM6AAAAABLDTRITWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXHAZDANRQG4. You are receiving this because you were mentioned.Message ID: @.***>