Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.31k stars 447 forks source link

Add PIN list for different boards #450

Open FDelporte opened 5 years ago

FDelporte commented 5 years ago

I have been experimenting with a JavaFX application to visualize the pin lay-out (and eventually later be able to show and change the GPIO remotely from this app to a board).

Based on the already existing enums I could quickly generate an image similar to the one on https://www.pi4j.com/1.2/pins/model-3b-plus-rev1.html, see Proof-Of-Concept code on https://github.com/FDelporte/pi4j-ui/blob/master/src/main/java/be/webtechie/pi4jui/board/impl/RaspberryPi_3B_Plus.java

Could this be something to add in pi4j itself?

(The dropdowns on the screenshot are just from experimenting, not related to the generated image yet)

pi-pins

savageautomate commented 5 years ago

@FDelporte

I do think something like this would be useful --- perhaps in an even greater capacity in version 2 where it could provide an interactive GUI to visualize the actual state of which pins are provisioned and what modes they are configured for as well as the active state. Possibly even control of output states.

The WiringPi project provides a GPIO utility to visualize the GPIO states via a command line interface.

We might want to consider a runtime service in Pi4J v2 that exposes a remotely accessible interface for interactive with the I/O state. This could coincide with the desire to also run a Pi4J enable project from your IDE/desktop and remote the I/O over the network to a physical Raspberry Pi.