I'm trying to operate 2 separate LEDs with 2 separate pushbutton switches. I wrote a code, and about halfway through, I tested it. The first button worked great -- push it once, light comes on. Push it again, light goes off.
Then, I wrote the code for the second LED/button. I essentially just duplicated the first half of the code with new variable names. But now, when I press either button, both lights come on. When I press either button again, both lights go off.
I want one button to control one light, and another button to control another light. Please help.