OctoPrint-Enclosure icon indicating copy to clipboard operation
OctoPrint-Enclosure copied to clipboard

Possible to add i2c GPIO Expander option? MCP23017 chip.

Open JaredC01 opened this issue 5 years ago • 2 comments

Hello,

I'm in somewhat of a unique position. I'm using a Pimoroni Hyperpixel 4.0 display, which uses all of the GPIO pins for the display, making all of the regular GPIO pins unusable. I've got an i2c GPIO expander board, based on the MCP23017 chip, which connects via i2c. I can manually control the GPIO via the command line, however I can't find any way to make use of the MCP23017 chip inside of the Enclosure Plugin, and when attempting to add ANY GPIO pin, it breaks the display.

Would it be possible to add support for this chip? The command-line GPIO control has built-in extensions for the 23017 chip, however the Python library doesn't seem to, as best I can tell.

If this is possible, please let me know! I would be happy to test anything you can come up with.

JaredC01 avatar May 15 '20 17:05 JaredC01

Possible? yes! but if you follow some of my comments here I started a master degree and haven't had time to work on this plugin in a while. I have a lot of stuff planed and started making some changes but it would need completely re-writing most of the plugin and I don't have the time now, so don't expect this soon...

vitormhenrique avatar May 26 '20 20:05 vitormhenrique

I understand. Thank you for the reply, and good luck with your masters degree!

JaredC01 avatar May 26 '20 20:05 JaredC01