Nano GPIO-Interrupt Integration

It’s still early in the development cycle, so all is running in a single ‘main’ loop, not multi-threaded.

I can break up the code so, the encoder operation isn’t forced to run while video is playing. The encoder is for a jog wheel, so its pins can be polled only when the video is paused. That should clear up the cycle scarcity issue. But I suspect interrupts will be required before the project is done. As I mentioned before, I’m new to the Jetson Nano. Processors I’ve used previously, have had registers where interrupts are initialized and serviced. I’m not seeing anything like that on the Nano. I’m not fluent with python either, so there’s a learning curve there as well.

I don’t know how to setup a GPIO pin for generating an interrupt. I’ve seen how the jetson-io.py utility works, but don’t see how it can setup an interrupt. I’d like to learn how to use interrupts, even if it’s not necessary for the encoder. Can you point me in a direction to learn about implementing interrupts? (Hopefully using python.)

Thanks,

robin