#include <Servo.h>
Servo servo1;
Servo servo2;
void setup() {
pinMode(7, INPUT);
pinMode(6, INPUT);
pinMode(5, INPUT);
servo1.attach(11);
servo2.attach(10);
}
void loop() {
if (digitalRead(7) == LOW){
servo1.write(180);
}
else if (digitalRead(6) == LOW){
servo2.write(180);
}
else if (digitalRead(5) == LOW && digitalRead(7) == HIGH && digitalRead(6) == HIGH){
servo1.write(180);
servo2.write(180);
}
else {
servo1.write(0);
servo2.write(0);
}
}