   // microseconds before and after changing the DIR pin.
   delayMicroseconds(1);
   digitalWrite(amisDirPin1, dir);
+  digitalWrite(amisDirPin2, dir);
   delayMicroseconds(1);
 }

const uint8_t amisDirPin1 = 2;      //Dir
const uint8_t amisDirPin2 = 6;      //Dir
const uint8_t amisStepPin1 = 3;     //Step
const uint8_t amisSlaveSelect1 = 4; //CS
const uint8_t amisStepPin2 = 5;

AMIS30543 stepper;

void setup()
{
  SPI.begin();
  //stepper.init(amisSlaveSelect);
  
  char myChar = 'A';
  
  // Drive the NXT/STEP and DIR pins low initially.
  digitalWrite(amisStepPin1, LOW);
  pinMode(amisStepPin1, OUTPUT);
