4 // Shows how to run AccelStepper in the simplest,
5 // fixed speed mode with no accelerations
6 /// \author Mike McCauley (mikem@airspayce.com)
7 // Copyright (C) 2009 Mike McCauley
8 // $Id: ConstantSpeed.pde,v 1.1 2011/01/05 01:51:01 mikem Exp mikem $
12 #define motorPin5 8 // Blue - 28BYJ48 pin 1
13 #define motorPin6 9 // Pink - 28BYJ48 pin 2
14 #define motorPin7 10 // Yellow - 28BYJ48 pin 3
15 #define motorPin8 11 // Orange - 28BYJ48 pin 4
17 #include <AccelStepper.h>
19 AccelStepper stepper(HALFSTEP, motorPin5, motorPin7, motorPin6, motorPin8);; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5
22 stepper.setMaxSpeed(1000);