Skip to content

Change pin mode pi4j v2.0 #76

Answered by savageautomate
RudNick91 asked this question in Q&A
Discussion options

You must be logged in to vote

@RudNick91

I started a pull request for the MultiPurposeDigitalInputOutput here: #30

Here is the original issue tracking this change: #26

However, I have not had the time to fully test it and get it merged into the project yet. Its something I cam probably start digging back into over the next couple of weeks.

I think this would address the issue you have raised. You would create a single IO object and be able to call the mode() method to change to the desired INPUT or OUTPUT mode as needed.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@RudNick91
Comment options

Answer selected by RudNick91
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants