Skip to content

Interrupt not implemented for Python #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
moris526 opened this issue Apr 6, 2021 · 9 comments
Open

Interrupt not implemented for Python #14

moris526 opened this issue Apr 6, 2021 · 9 comments

Comments

@moris526
Copy link

moris526 commented Apr 6, 2021

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
Copy link
Member

tannewt commented Apr 7, 2021

What are you trying to do?

@moris526
Copy link
Author

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
Copy link
Member

tannewt commented Apr 12, 2021

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
Copy link
Member

tannewt commented Apr 12, 2021

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
Copy link
Author

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
Copy link
Member

tannewt commented Apr 26, 2021

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

@moris526
Copy link
Author

OK. Thanks

@cospin
Copy link

cospin commented Jul 19, 2024

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
Copy link
Author

moris526 commented Jul 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants