Hello, I have eight LEDs, one battery source and one normally open SPST push-button switch. I want the LEDs to light and turn off one by one in succession through the push-button switch.
So that push 1 will light LED 1 (and when the button is realeased it will turn it off), push 2 will light LED 2 (and turn it off) push 3 will light LED 3 (and turn it off) push 4 will light LED 4 (and turn it off) etc. When LED 8 has been lighted up and turned off, the process recontinue. So that the ninth push will light LED 1 (and turn it off), the tenth push will light LED 2 (and turn it off) etc.
How do I do that?
So that push 1 will light LED 1 (and when the button is realeased it will turn it off), push 2 will light LED 2 (and turn it off) push 3 will light LED 3 (and turn it off) push 4 will light LED 4 (and turn it off) etc. When LED 8 has been lighted up and turned off, the process recontinue. So that the ninth push will light LED 1 (and turn it off), the tenth push will light LED 2 (and turn it off) etc.
How do I do that?