New GPIO device to support multiple pins #526
Replies: 4 comments 1 reply
|
This would complicate any "unique check" being discussed here => #509 (comment) |
|
a pi4j-driver could implement this, by handling n-pins. The performance would probably be abysmal. But the API could be clear. And in a further step we could then see how FFM could possibly supply such a feature. |
|
Drivers has these:
I am not super happy with some of the naming in the API, but I think the I2C IO expander case is very similar to a "local" multi-pin read and write API:
Might make sense to have a shared (super-)interface here....? EDIT: A use case is here: https://github.com/Pi4J/pi4j-drivers/blob/1bfea3c39eed383c3069c740e06db7a39bebb51b/src/main/java/com/pi4j/drivers/display/character/hd44780/Hd44780Driver.java#L95 |
|
Yes, when I was implementing FFM provider I was thinking the same thing. But the goal was to have a basic support, similar to other providers, until release. This is definitely worth designing and implementing. Design considerations are understandable, I hope we can figure out how to make it usable. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Pi4j doesn't currently provide functionality to read/write multiple pins at a time.
A
DigitalPortor similar providing this functionality could simplify integration with ICs which operate in a parallel manner. E.g.The Pi4j API currently requires these types of interaction to be done in a serial-like fashion as it's not possible to read/write multiple pins at once. This adds unnecessary complication to application code.
GPIO_V2_LINE_GET_VALUES_IOCTL and GPIO_V2_LINE_SET_VALUES_IOCTL used by FFM provide these operations.
All reactions