User:Jdittman8063/ENES-100/project 2/Successful Test

//uses Adafruit Motor shield library
 * 1) include 

AF_Stepper motor(200, 2); int led = 6; //set solenoid to digital pin 6

void setup { Serial.begin(9600);   // set up Serial library at 9600 bps Serial.println("Short test of stepper motor."); motor.setSpeed(90); // 90 rpm }

void loop { //10 steps forward then a full rotation back //then 10 steps backward and 10 forward\ motor.step(10, FORWARD, DOUBLE); delay(400); motor.step(200, BACKWARD, DOUBLE); delay(400); motor.step(10, BACKWARD, DOUBLE); delay(400); motor.step(10, FORWARD, DOUBLE); delay(400); //finish with two full forward rotations motor.step(400,FORWARD, DOUBLE); delay(1000);

}