1 of 1 people found this helpful
Please read this application note on how to read and write data to pins: http://www.cypress.com/documentation/application-notes/an86439-psoc-4-using-gpio-pins
1) Place 5 GPIO pins on TopDesign schematics. Configure them as Strong drive.
2) Use *instanceName*_write(value) function to write "0" or "1" to the corresponding pins.
3) In the design wide resources map the pins to the actual physical pins on the board which connect to the LEDs.
I hacked a simple sample for CY8CKIT-042.
On my shield 4 LEDs are mounted at D10, D11, D12, D13.
So I used RED LED on CY8CKIT-042 as LED0,
and other 4 for LED1 ~ LD4 to make 5 LEDs.
For other boards pin assignments needs to be changed.