ShrimpingIt / micropython-mcp230xx

Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
GNU Affero General Public License v3.0
30 stars 16 forks source link

INT[AB] handling and external I2C object #6

Open runout-at opened 3 years ago

runout-at commented 3 years ago

Hi & thanks for the great work!

I was in need of using the interrupt functionality of the chip and be more compatible with machine.Pin. If anybody is interested I could publish the code - let me know.

New functionality:

Changed constructor:

eparadis commented 1 year ago

I'm interested!

runout-at commented 1 year ago

@eparadis: https://gitlab.com/runout/micropython/-/blob/main

the handling of irq and callbacks is not tested yet. feedback is welcome in the issue tracker on gitlab. the intention is to have a compatible interface to machine.pin.