   return color;
 }
 
-//Supportive function for device calibration
-/*void calibrate() {
-  // Setting red filtered photodiodes to be read
-  digitalWrite(S2,LOW);
-  digitalWrite(S3,LOW);
-  // Reading the output frequency
-  frequency = pulseIn(scanSensor, LOW);
-  // Printing the value on the serial monitor
-  Serial.print("R= ");//printing name
-  Serial.print(frequency);//printing RED color frequency
-  Serial.print("  ");
-  delay(100);
-  // Setting Green filtered photodiodes to be read
-  digitalWrite(S2,HIGH);
-  digitalWrite(S3,HIGH);
-  // Reading the output frequency
-  frequency = pulseIn(scanSensor, LOW);
-  // Printing the value on the serial monitor
-  Serial.print("G= ");//printing name
-  Serial.print(frequency);//printing GREEN color frequency
-  Serial.print("  ");
-  delay(100);
-  // Setting Blue filtered photodiodes to be read
-  digitalWrite(S2,LOW);
-  digitalWrite(S3,HIGH);
-  // Reading the output frequency
-  frequency = pulseIn(scanSensor, LOW);
-  // Printing the value on the serial monitor
-  Serial.print("B= ");//printing name
-  Serial.print(frequency);//printing BLUE color frequency
-  Serial.println("  ");
-  delay(100);
-}
-
+/*
 void printSide(String side[]) {
   byte e = 0; 
   for (byte i=0; i<3; i++) {

//Method for scanning cube's top side
void scanTopSide() {
  turnMotor2(95, 5);
  delay(200);
  turnMotor4(35, 7);
  delay(200);
  attachInterrupt (0, leftButtonPressed, RISING);
  operateFlag = true;
  for (byte i = 0; i<9; i++) {
    turnMotor1(Motor_1_ScanAngles[i], 4);
    delay(50);
    turnMotor4(Motor_4_ScanAngles[i], 5);
    delay(200);
    SideScanResult[i] = scanResult();
    delay(200);
  }
  turnMotor4(35, 7);
  turnCubeStraight();

    }
  }
  motor_3_Position = limitedDegree;
  delay(standardDelay);
}


