#include <Servo.h>
Servo First;
Servo Secound;
Servo Third;
void setup() {
First.attach(5);
Secound.attach(6);
Third.attach(7);
First.write(90);
Secound.write(90);
Third.write(90);
}
void loop() {
for(int i=90;i<=180;i++)
{
First.write(i);
delay(20);
}
delay(1000);
for(int x=90,y=90;x>=45,y<=135;x--,y++)
{
Secound.write(x);
Third.write(y);
delay(20);
}
}