Unregister created IO's #183
Unanswered
beulenbilly
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to use the new version and I am not able to find a similar function like com.pi4j.io.gpio.GpioController#unprovisionPin from v1.
I have a small app which can be configured at runtime which GPIO should be used and if it should be used as IN or OUT IO. With the version 1 I unprovisioned all pins and created/provisioned all configured GPIO's. How do I manage it with version 2?
I tried to use IO.shutdown, but it doesn't remove it from the RuntimeRegistry. Unfortunately I wasn't able to find a way how I can access the RuntimeRegistry from the Context.
What do I miss?
Beta Was this translation helpful? Give feedback.
All reactions