Skip to content

Instantly share code, notes, and snippets.

@jlandry
Created December 23, 2014 01:29
Show Gist options
  • Save jlandry/0b3904618b34f06ce5f9 to your computer and use it in GitHub Desktop.
Save jlandry/0b3904618b34f06ce5f9 to your computer and use it in GitHub Desktop.
#include <Servo.h>
Servo myservo;
void setup()
{
myservo.attach (9);
}
void loop()
{
myservo.writeMicroseconds (700);
delay(1000);
myservo.writeMicroseconds (1550);
delay(1000);
myservo.writeMicroseconds (2500);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment