Advertisement
Guest User

Untitled

a guest
May 1st, 2020
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Stepper.h>
  2.  
  3. const int stepsPerRevolution = 300; //<400
  4. Stepper myStepper(stepsPerRevolution, 8,10,9,11);
  5. void setup() {
  6.  myStepper.setSpeed(100);
  7. }  
  8. void loop() {
  9.  myStepper.step(stepsPerRevolution/2);
  10.  delay(100);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement