changing IO pin direction in code... | Cypress Semiconductor
changing IO pin direction in code...
Hi. how do I change an IO pin from an output to an input pin (or vise versa) in code?
The datasheet for IO has one API called CyPins_SetPin() but its usage (API) wasn't described. Is this what I need?
The code generated for the project (Pin_1.c) does not even contain this routine (?)
This API is for use with PSoc3 and PSoC5LP which are both of the devices that I am using.
Please advise. Thank you.