Robert Savage
Robert Savage
I think we are still missing PWM, SERIAL, DIGITAL GPIO and SPI. So actually, I think only I2C is currently implemented. I think the Digital Input and Digital Output providers...
@tatery OK, so I have been looking into this question and this is the first plugin for an external chip on the 2.x architecture and not everything in terms of...
@tatery I'm leaning towards the method name `setup(...)` implying that some initial action is required to setup the provider as well as it better implies that it may not be...
I went ahead and updated the prototype code to support the `setup(...)` method concept. Albeit without modifications to Pi4J interfaces at this time. https://github.com/savageautomate/pi4j-plugin-microchip/blob/main/src/test/java/com/pi4j/plugin/microchip/mcp23017/provider/gpio/digital/test/MCP23017GpioOutputExample.java By the way, here is the...
@tatery I went ahead and started plugging in some of the implementation code in the prototype project: https://github.com/savageautomate/pi4j-plugin-microchip/commit/32c873de9fb821582bc9908c2c736200394f226c In theory, you might get Digital outputs working with this code on...
@tatery A few more improvements to the prototype code today. It should work for both DIGITAL INPUT and OUTPUT but only when polling input states. The code to handle MCP23017...
@taartspi > We never returned to my initial provider code and its implementation questions. I can see this thread has moved past that old discussion, which code stream do I...
@taartspi Not sure if I fully understand your comment. The interrupt enable flag is currently being set (enabled) for each pin configured as a digital input and disabled if set...
@taartspi > @savageautomate ... Not sure why poll. The application would set the mcp registers via this java code to define which pins are input and these definitions are written...
@taartspi Not sure if I'm going to help clarify or make things worse ... but here goes .... > **Device contains pins.** The chip contains a list of its pins....