Skip to content

Instantly share code, notes, and snippets.

@kubadlo
Created May 22, 2015 19:37
Show Gist options
  • Save kubadlo/0d092f48526a04c9173c to your computer and use it in GitHub Desktop.
Save kubadlo/0d092f48526a04c9173c to your computer and use it in GitHub Desktop.
#include <Servo.h>
#define MAX_SIGNAL 2000
#define MIN_SIGNAL 700
#define MOTOR_PIN 9
Servo motor;
void setup() {
motor.attach(MOTOR_PIN);
motor.writeMicroseconds(MAX_SIGNAL);
delay(2200);
motor.writeMicroseconds(MIN_SIGNAL);
delay(2200);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment