Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

Sketch question

$
0
0
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?

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...
Sketch question

Viewing all articles
Browse latest Browse all 1271

Trending Articles