I found this on youtube and tried it out. It works but I am confused as to why I can't activate both pushbuttons at the same time. How can this sketch be modified to do this?
Sketch question
Code:
// constnts that won't change. They're used here to set pin numbers const int button1 = 2; // the number of the pushbutton pin const int button2 = 3; // the number of the pushbutton pin const int relay1 = 11; // the number of the relay1 pin const int relay2 = 12; // the number of the relay2 pin...