#include <Servo.h> // this allows you to use the Servo library

Servo myLittleMotor; // you can call the servo whatever you want
int servoPin = 3; // pin the servo data line is plugged into

void setup() {
  myLittleMotor.attach(servoPin); // set up the servo on that data pin
}

void loop() {
  myLittleMotor.write(10); // tell the servo to go to 10º
  delay(500); // wait a half second
  myLittleMotor.write(170); // tell the servo to go to 170º
  delay(800); // 8/10ths of a second
}

