Anonymous
Not applicable
Sep 15, 2018
04:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 15, 2018
04:30 PM
1 Solution
Attachments are accessible only for community members.
Sep 18, 2018
12:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 18, 2018
12:12 AM
Hi,
Attached is my trial.
But if this is an assignment at your class,
please try it by yourself first 😉
moto
5 Replies
Sep 16, 2018
01:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 16, 2018
01:03 AM
What difficult do you meet?
Sep 16, 2018
03:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 16, 2018
03:31 AM
You have 5 different states, a "switch" statement may cover all those. Set in the (debounced) button interrupt handler a global variable which you check in the infinite main loop. When set, advance to next LED-state and reset the variable.
Which kind of hardware are you using? Kit ?? Which one???
Bob
Sep 16, 2018
03:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 16, 2018
03:01 PM
KIT-042
Sep 16, 2018
07:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 16, 2018
07:56 PM
meemo,
I recomment to start with simple button switch example for KIT-042, which you can find here:
ButtonSw32: button switch debouncer component
Start with PSoC4 basic example, which has 3 buttons and 3 onboard LED. Once it works, add extra code (like if..then..else) to modify for your need.
Attachments are accessible only for community members.
Sep 18, 2018
12:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 18, 2018
12:12 AM