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

}}
}

void spinPlatform(int steps, int directions){ //this spins the cake platform given # of steps
  int stepCounter = steps;
  while (stepCounter>0){
    Serial.print("turn a step");
    digitalWrite(platformStep, HIGH);
    delay(200);
    digitalWrite(platformStep,LOW);

    delay(200);
  
  while (stepCounter<0){
    Serial.print("turn a step ccw");
    digitalWrite(platformStep, LOW);
    delay(200);
    digitalWrite(platformStep, HIGH);
    stepCounter -= 1;
    delay(200); }
  
}}
