#include <Servo.h>
Servo myServo1;
Servo myServo2;
int servo1Pin=4;
int servo2Pin=3;
int servo1Pos1=0;
int servo1Pos2=180;
int servo2Pos1=180;
int servo2Pos2=0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
myServo1.attach(servo1Pin);
myServo2.attach(servo2Pin);
}
void loop() {
// put your main code here, to run repeatedly:
myServo1.write(servo1Pos1);
myServo2.write(servo2Pos1);
delay(1500);
myServo1.write(servo1Pos2);
myServo2.write(servo2Pos2);
delay(1500);
}