#include <Servo.h>


Servo motor1; //mittleres Bein
Servo motor2; //linkes Bein
Servo motor3; //rechtes Bein

void setup() 
{  
motor1.attach(9);
motor2.attach(10);
motor3.attach(11);
}

void loop() {
 motor1.write(45); //mittleres Bein links unten
 delay(1000);
 motor2.write(0); //linkes Bein rückwärts
 motor3.write(0); //rechtes Bein vorkwärts
 delay(1000);
 motor1.write(135); //mittleres Bein rechts unten
 delay(1000);
 motor2.write(90); //linkes Bein vorwärts
 motor3.write(90); //rechtes Bein rückwärts
 delay(1000);

}