I would like to turn an LED on and off by pressing 2 buttons, not switches. e.G. If I press button , the LED should trun on,
I think it isn't possible with if, because the button must be pressed the time the LED should be turned on.
If I press it again, It should turn off. If I press B1 to turn it on, I would like to press B2 to turn it off for example.
Does anybody have a solution for this problem?