Hi guys. My goal is to have two momentary pushbuttons (each on their own IO lines) function as an AND gate, and I would like this AND gate to toggle a loop on or off (the loop just has some code to control a buzzer).
In practice, I would press these two buttons together, which would effectively turn the beeper on or off, but when each button is pressed individually, nothing will happen.
I'm not sure what the best way is to do this and I'm extremely new to Arduino stuff in general. Any ideas? Thanks!