Skip to content

Instantly share code, notes, and snippets.

@easai
Last active January 19, 2016 12:22
Show Gist options
  • Save easai/65c1a1cc5e2fcc0733e0 to your computer and use it in GitHub Desktop.
Save easai/65c1a1cc5e2fcc0733e0 to your computer and use it in GitHub Desktop.
#include <Stepper.h>
const int stepsPerRevolution = 32*64;
Stepper myStepper(stepsPerRevolution, 8, 10, 9, 11);
void setup() {
myStepper.setSpeed(10);
}
void loop() {
myStepper.step(stepsPerRevolution);
delay(500);
myStepper.step(-stepsPerRevolution);
delay(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment