Single pin that can switch from input to output mode, and vice-versa.
Example use (assumes the
Error type is the same for the
This trait is available if embedded-hal is built with the
Tries to convert this pin to input mode.
If the pin is already in input mode, this method should succeed.
Tries to convert this pin to output mode with the given initial state.
If the pin is already in the requested state, this method should succeed.