Previously, we saw the use of a push button where as long as the button was pressed, the LED was on and it turned off as soon as the button was released.
Make use of a push button as a normal switch:
That is the state of LED changes every time the button is pushed.