 //  eraseFreqTopScreen();                             // clear previously entered drequesncy at display top
 //  eraseEnteredFrequency();                          // clear entered frequency at display bottom
 //  displayFreqTopScreen();                           // display desired frequesncy at display top
-  //  SetFrequencyStage1();
+//  SetFrequencyStage1();
 //}
 
 

  TFTscreen.text(DisplayValueC2, 40, 85);
}

void EraseDisplayC2() {                                   // erase display C values
  TFTscreen.stroke(0, 20, 20);
  TFTscreen.setTextSize(2);
  TFTscreen.text(DisplayValueC2, 40, 85);
}

double stepsToMh(float x) {
    return  3.2408606623203362e-001 * pow(x, 0)
            +  4.8175734249036963e-005 * pow(x, 1)
            + -8.2394558534492893e-009 * pow(x, 2)
            +  4.1381892772191581e-012 * pow(x, 3)
            + -5.0628320718901775e-016 * pow(x, 4)
            +  3.2564586259750260e-020 * pow(x, 5)
            + -1.1101886921087241e-024 * pow(x, 6)
            +  1.3237902692887521e-029 * pow(x, 7)
            +  3.9488291689952899e-034 * pow(x, 8)
            + -1.8793946779017113e-038 * pow(x, 9)
            +  3.2823426065013548e-043 * pow(x, 10)
            + -2.7820892583909193e-048 * pow(x, 11)
            +  9.4929814793314678e-054 * pow(x, 12);
  }
  


void eraseFrequency() {                         // when * pressed - erases entered frequency bottom of the screen
  EnteredFreqString = "";
  TuningFreqString = "";
  TFTscreen.stroke(0, 20, 30);
  TFTscreen.setTextSize(2);
  TFTscreen.text(enteredFreq, 50, 110);
}

//void tuningDisplay() {
//  for (i = 0; i < 4; i++) {

  // Displays C1
  TFTscreen.stroke(0, 255, 0);                      // set the font color
  TFTscreen.setTextSize(2);                         // set the font size 2
  TFTscreen.text("C1", 5, 55);                     // write the text to coordinates
  // Displays C2
  TFTscreen.stroke(0, 255, 0);                      // set the font color
  TFTscreen.setTextSize(2);                         // set the font size 2
