This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Single Button Swtiching LED

Hi,

I need help in writing this C Program

Circuit : LED are connected to P1.0 to P1.4 , a push button (push to on) Switch is connected to P1.7
When button is pressed first time, LED on P1.0 switches on, when switch is pressed again, LED on P1.0 switches off and then LED on P1.1 glows, same cycle repeats (P1.2, P1.3, P1.4 then again P1.0) whenever push button is pressed.

Thanks
suds
sudhirmt@gmail.com

0