 #define DRV8825_MODE2 5
 #define DRV8825_ENABLE 6
 
+//A4983 pins
+#define A4983_STEP 7
+#define A4983_MODE0 3 //Same as DRV8825
+#define A4983_MODE1 4 //Same as DRV8825
+#define A4983_MODE2 5 //Same as DRV8825
+#define A4983_ENABLE 8
 
 void setup() {
   Serial.begin(9600);
+  pinMode(13, OUTPUT);
 
   //DRV8825 pin config
-  pinMode(13, OUTPUT);
   pinMode(DRV8825_STEP, OUTPUT);
   pinMode(DRV8825_MODE0, OUTPUT);
   pinMode(DRV8825_MODE1, OUTPUT);
   pinMode(DRV8825_MODE2, OUTPUT);
   pinMode(DRV8825_ENABLE, OUTPUT);
 
+  //DRV8825 pin config
+  pinMode(A4983_STEP, OUTPUT);
+  pinMode(A4983_ENABLE, OUTPUT);
+
   digitalWrite(DRV8825_STEP, LOW);
   digitalWrite(DRV8825_MODE0, LOW);
   digitalWrite(DRV8825_MODE1, LOW);
   digitalWrite(DRV8825_MODE2, LOW);
-  digitalWrite(DRV8825_ENABLE, LOW);
+  digitalWrite(DRV8825_ENABLE, HIGH);
+  digitalWrite(A4983_STEP, LOW);
+  digitalWrite(A4983_ENABLE, HIGH);
 
   //Timer variables for steps
   blink_t = millis();

    step_count += 1;
    step_t = tu;
  }

  //Blink every second
  if (tm - blink_t > 1000) {

    Serial.write(Serial.read());
  }

#if 0
  //DRV8825
  //One revolution, then wait one cycle
  if (tu - step_t > step_wait) {
    //One fullstep lap (two toggles per step)
