System Power Toggle Button

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi Everyone,

   

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. 

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Obviously not an accidental double post. Follow up here, please www.cypress.com/

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Quintuple post, go here -

   

 

   

    

   

          http://www.cypress.com/?app=forum&id=2492&rID=88574

   

 

   

Regards, Dana.

0 Likes