Arduino coding to allow separate push buttons to turn led on and off? Answered
I am new to the Arduino and have yet to use one. I understand a little about how to program the Arduino and would like to know more specifically about push buttons. I know that I will most likely have to use "edge detection" to determine when the push button is pressed. I don't want to have a push button turn an led on if pressed and if pressed again turn it off. I want to separate the on and off into two different buttons. When i push the first button it will always turn the LED circuit on even if i press it twice. When i push the second button it will always turn the LED circuit off no matter how many times it gets pressed. Is this possible, and if so how do i code it?