#include <Servo.h>
Servo myservo; // create servo object to control a servo
int servo = 9; // control pin for servo
void setup() {
myservo.attach(servo); // attaches the servo on pin 9
// to the servo object
}
void loop(){
myservo.write(90); // sets the servo position to center
delay(1000); // waits for the servo to get there}
myservo.write(0);
delay(1000);
}