 
 
 
-void spinPlatform(int steps, int directions){ //this spins the cake platform given # of steps
+void spinPlatform(int steps, int directions){ 
+  //this spins the cake platform given # of steps
+  //direction of 1 should mean clockwise, 0 = counterclockwise
+  //no outputs
   int stepCounter = steps;
-  //int turn = directions;
+  digitalWrite(platformDirection,LOW)
+  if (directions == 1) {  // switches direction if clockwise. May have to change this
+    digitalWrite(platformDirection,HIGH)
+  }
+
   while (stepCounter>0){
-    Serial.print("turn a step cw");
     digitalWrite(platformStep, HIGH);
-    delay(200);
+    delay(100);
     digitalWrite(platformStep,LOW);
     stepCounter -= 1;
-    delay(200);
-  
-  while (stepCounter<0){
-    Serial.print("turn a step ccw");
-    digitalWrite(platformStep, LOW);
-    delay(200);
-    digitalWrite(platformStep, HIGH);
-    stepCounter -= 1;
-    delay(200); }
-  
-}
+    delay(200);  
+}

  //this moves the top frosting motor given # of steps
  //directions should be 1 to move inward, 0 for out
  linearMotor->setSpeed(60);
  
  
 
  linearMotor->run(RELEASE);
}



void calibrateLinear(int steps, int directions){
  int limitSwitchOne() {
  int reading = digitalRead(masterOnOff);
  int callibrateOne = digitalRead(limitOne);

    serialNumbers += c;
 }

switch (serialInput) {
  case "CON":  //connection check
    Serial.println("YES");
    break;
  case "GB?": //green button check
    break;
  case "OS?":
    break;
  case "LSI":
    moveTopStepper(serialNumbers,1);
    break;
  case "LSO":
    moveTopStepper(serialNumbers,0);
    break;
  case "RPC":
    spinPlatform(serialNumbers,1);
    break;
  case "RPN":
    spinPlatform(serialNumbers,0);
    break;

}

 
 if (serialInput == "TLS"){
   moveTopStepper();
