- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have connected 5 LED lights in my project, but I dont understand what should i write in my program to start LED lights. How to on and off those led lights. I attached the main.c file and picture of the project to give a idea what is my problem.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rozoa,
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
Brief Steps:
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.
Regards,
Yeshwanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rozoa,
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
Brief Steps:
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.
Regards,
Yeshwanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content