Last active
January 19, 2016 12:22
-
-
Save easai/65c1a1cc5e2fcc0733e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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