Hello,
Thanks for the great project.
I currently initialize all pins to PinMode.INPUT - but would dynamically light to change the mode depending on need to PinMode.OUTPUT.
I get
com.pi4j.io.gpio.exception.InvalidPinModeException: Invalid pin mode on pin [GPIO 13]; cannot setState() when pin mode is [input]
Is there a way to do this? By perhaps deprovisioning and re-provisioning ?
Hello, Thanks for the great project. I currently initialize all pins to PinMode.INPUT - but would dynamically light to change the mode depending on need to PinMode.OUTPUT.
I get
com.pi4j.io.gpio.exception.InvalidPinModeException: Invalid pin mode on pin [GPIO 13]; cannot setState() when pin mode is [input]
Is there a way to do this? By perhaps deprovisioning and re-provisioning ?
Thanks kindly.