Closed crosofg closed 8 years ago
If I'm not mistaken, the interrupt-on-change interrupts can be detected on the INTA/INTB pins of the MCP23017. Is this correct? If so, these pins could be wired to GPIO pins configured as inputs on the Raspberry Pi / BeagleBone, or whatever the system happend to be. The onoff package can then be used to detect these interrupts. onoff can be used for low latency interrupt detection (without polling.)
Please let me know whether or not I've interpreted the requirement correctly here.
Yes, you are correct. Interrupt are detected on INTA / B. I think onff package can work
Ok, give it a try and let us know how it goes :)
@crosofg was it possible to resolve the issue with onoff?
@fivdi yes that worked. Thanks
Excellent, thanks for the feedback.
I am trying to use this for MCP23017. How do I set a interrupt based callback. I need to get the onchange callback .