 int varDelayY;
 int moveX;
 int moveY;
+
+// interrupt variables
 int timerX;
 int timerY;
 boolean stateX;
 boolean stateY;
 int timerTick;
+
+// variables for reading in speed
+String str;
+int number;
  
 void setup() {
     pinMode(X_ENABLE_PIN, OUTPUT);

      Serial.println("r reset");
}

void loop() {  
//    if (moveX >= 0) {
//      stepX(stepsize, moveX);
//    }
//
//    if (moveY >= 0) {
//      stepY(stepsize, moveY);
//    }
  
    if (Serial.available()) {
        byte r = Serial.read();


#define Y_MIN_PIN          14
#define Y_MAX_PIN          15

#define MIN_DELAY          100 // minimum timer tick

// these are initialized in reset()
int stepsize;
