 
 
 // two stepper motors one on each port
-Adafruit_MotorShield AFMS_a(0x60); 
-Adafruit_MotorShield AFMS_b(0x61); 
-
+Adafruit_MotorShield AFMS_a = Adafruit_MotorShield(0x60); 
+Adafruit_MotorShield AFMS_b = Adafruit_MotorShield(0x61); 
+/*
 Adafruit_StepperMotor *motor1 = AFMS_a.getStepper(200, 1);
 Adafruit_StepperMotor *motor2 = AFMS_a.getStepper(200, 2);
 Adafruit_StepperMotor *motor3 = AFMS_b.getStepper(200, 1);
 Adafruit_StepperMotor *motor4 = AFMS_b.getStepper(200, 2);
+*/
+
 
 #define data   4
 #define clock  5

KeyFrameRgbLED      rgb3u = KeyFrameRgbLED (&tlc, 5, rgb3o_kf, 3);
KeyFrameRgbLED      rgb4o = KeyFrameRgbLED (&tlc, 6, rgb4u_kf, 3);
KeyFrameRgbLED      rgb4u = KeyFrameRgbLED (&tlc, 7, rgb4o_kf, 3);

RgbLED led = RgbLED( &tlc, 4);

AccelStepper astepper1(motor1->onestep(FORWARD, SINGLE), motor1->onestep(BACKWARD, SINGLE)); // use functions to step
AccelStepper astepper2(motor2->onestep(FORWARD, SINGLE), motor2->onestep(BACKWARD, SINGLE)); // use functions to step
AccelStepper astepper3(motor3->onestep(FORWARD, SINGLE), motor3->onestep(BACKWARD, SINGLE)); // use functions to step
AccelStepper astepper4(motor4->onestep(FORWARD, SINGLE), motor4->onestep(BACKWARD, SINGLE)); // use functions to step


void setup()
{
  Serial.begin(9600);
  Serial.println("start");
  
  AFMS_a.begin();
  AFMS_b.begin();
  
  stepper1.start();
  stepper2.start();
  stepper3.start();
  stepper4.start();

  astepper1.setSpeed(50);
  astepper2.setSpeed(100);
  astepper3.setSpeed(200);
  astepper4.setSpeed(50);

  astepper1.moveTo(300);
  astepper2.moveTo(500);
  astepper3.moveTo(200);
  astepper4.moveTo(300);

  tlc.begin();
  led.doFineSerialOutput(true);
  
  rgb1o.start();
  rgb1u.start();

 //stepper3.loop();
 //stepper4.loop();

  //astepper1.runSpeed();
  astepper2.runSpeed();
  //astepper3.runSpeed();
  astepper4.runSpeed();
 
  //rgb1o.loop();
  //rgb1u.loop();
  //rgb2o.loop();
