CrazyIvan359 / mqttany

MQTTany is designed to make it easy to connect hardware on single board computers to your home automation solution.
https://crazyivan359.github.io/mqttany/index.html
MIT License
6 stars 6 forks source link

Add MCP230xx Interrupt Support #130

Closed CrazyIvan359 closed 2 years ago

CrazyIvan359 commented 2 years ago

Adds interrupt support for MCP230xx devices. Support for pin interrupt (only single pin for MCP23017) handling and also fast polling of devices to check the interrupt register. Pin interrupts are recommended to reduce the load on the I2C bus.

Currently only one device per interrupt pin is supported, using the same pin for multiple devices will cause an error. Support for multiple devices on one pin will require adding support for multiple callbacks to the same gpio interrupt handler which will be done at a later time.

Resolves #46