 char tuningFreq[6];
 char key;
 char DisplayValueC1[6];
+char DisplayValueC1pH[6];
 char DisplayValueC2[6];
+char DisplayValueC2pH[6];
 char DisplayValueL[6];
 char DisplayValueLUH[4];
 char DisplayValueSWR[6];

        case 'U':                           // "L" motor move 100 step CW
          incL(+10.0);
          break;
        case '*':                           // erase entered frequency
          eraseFrequency();
          break;
        case 'S':                           // erase entered frequency
          mechAutoTune();
          break;
        case 'K':                           // erase entered frequency
          mechFineTune();
          break;

          //        case 'U':                           // calibrate both motors
          //          mechCalibrate(channelC1);
          //          break;
          //        case 'D':                           // calibrate both motors
          //          mechCalibrate(channelL);
          //          break;

      }
  }
}

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

void EraseDisplayC2() {                                   // erase display C2 steps 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++) {
