User:JBers/enes100/My Work3/HovercraftFansRunOnMotorShield

// Adafruit Motor shield library // copyright Adafruit Industries LLC, 2009 // this code is public domain, enjoy!


 * 1) include 
 * 2) include 

// DC motor on M2 AF_DCMotor motor(2); // DC motor on M1 AF_DCMotor motor1(1);

void setup { Serial.begin(9600);          // set up Serial library at 9600 bps Serial.println("Motor party!");

// turn on motor #2 motor.setSpeed(200); motor1.setSpeed(200); motor.run(RELEASE); }

int i;

// Test the DC motor, stepper and servo ALL AT ONCE! void loop { motor.run(FORWARD); motor1.run(FORWARD); for (i=0; i<255; i++) { motor.setSpeed(i); motor1.setSpeed(i); delay(3); } for (i=255; i!=0; i--) { motor.setSpeed(i); motor1.setSpeed(i); delay(3); } motor.run(BACKWARD); motor1.run(BACKWARD); for (i=0; i<255; i++) { motor.setSpeed(i); motor1.setSpeed(i); delay(3); } for (i=255; i!=0; i--) { motor.setSpeed(i); motor1.setSpeed(i); delay(3); } }