     maxPin = maxPinIn;
     update = false;
     incr = 0;
+    pos = 0;
+    prevpos = 0;
   }
 
   void begin() {

 * for helping me writing this function!
 */
bool parseGCode(String in) {
  //int gindex = getIndex('G', in);
  int xindex = getIndex('X', in);
  Serial.println(" ");
  Serial.println(in);
  in = trim(in);
  Serial.println(in);
  int yindex = getIndex('Y', in);

  if(xindex != -1 && xindex != -2) sX.testSpin(xindex * 80);
  else Serial.println("getIndex::: x-error " + xindex);

  if(yindex != -1 && yindex != -2) sY.testSpin(yindex * 80);
  else Serial.println("getIndex::: y-error " + yindex);

  // fallback now, will be better implemented later
  return true;
}

String serialStr = "";

  }
};

// Initialise LCD
LiquidCrystal lcd(16, 17, 23, 25, 27, 29);


