Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I'm fairly new to the PSoC creator. I'm working with the PSoC 5LP develeopment kit. Attached to this message is my project I am working on to use a switch to turn on a LED but to also use that same switch to turn off the LED and turn on another after holding that LED for 4 seconds. I set up a design that I'm most confident will work, with a debouncer to a counter.
The issue I am having is with the main.c that I am building. If I use the debouncer sperately I can toggle the LED on and off with the switch easily, but with the counter connected I seem to lose this capability. Also i cannot seem to get the other LED to turn on after 4 seconds. PLS HELP.