Adding on to the reply;
There are two ways to access Pins Component, i.e., on a per-pin basis as well as on component-wide basis.
- If pins are contiguous, component wide API functions (Eg: LED_Read()) will get generated. This will write/read to all pins together.
- If pins are non-contiguous, you can use per-pin API (Eg: CyPins_ReadPin(LED_0)). Please refer to System Reference Guide (PSoC Creator, Help>System Reference Guide) for more details.
Per-pin API are generated for both cases. You can use this function to update data registers in your application. The aliases (Eg: LED_0 or LED_<AliasName>) for the pin registers are available in the LED_aliases.h file, where "LED" is the instance name of the Pins Component. You can find more details in section 'Per-Pin API' of Pins component datasheet.