I have a push button and two LEDs (red and blue).
I want them to be assembelled such that
1. When I press the push button, one of the LED is turned on and glows. It stops after I release the button.
2. When I press the push button again, another LED is turned on. It also stops after I release the button.
3. Repeat 2.
Here is a pic for help.
I think I need to use things such as Flip-flop, But I don't know how to use them. Any help will be greatly appriciated.
I want them to be assembelled such that
1. When I press the push button, one of the LED is turned on and glows. It stops after I release the button.
2. When I press the push button again, another LED is turned on. It also stops after I release the button.
3. Repeat 2.
Here is a pic for help.
I think I need to use things such as Flip-flop, But I don't know how to use them. Any help will be greatly appriciated.
Attachments
Last edited: