I am a new and i am trying to solve this.
Solved! Go to Solution.
Hi,
Attached is my trial.
But if this is an assignment at your class,
please try it by yourself first 😉
moto
What difficult do you meet?
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
KIT-042
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.
Hi,
Attached is my trial.
But if this is an assignment at your class,
please try it by yourself first 😉
moto