Main Site Documentation

Switch pin mode


How do I set an InputPort pin to become an OutputPort pin, and vice versa?
Or if that isn’t possible, how can I simply reset a pin so that I can create a new InputPort object using it?


Look at the TristatePort:


And some code:


Is this for RLP, ie C/C++?

For RLP, if you include RLP.h then you can call: