 //*************************JOG TIMERS*************************************
 int jDelay;                          // initial time between jogs
 int jogDelay = 500;                  // time between sucessive jogs
-int jogSlope = 12;
+int jogSlope = 4;
 
 //*************************HALL EFFECT, ISR variables*********************
 volatile unsigned int tempHallCount = 0;



  if (inputRight && !tripped) {
    while (true) {
    digitalWrite(CCWpin, HIGH);
    if (tripped) {
      digitalWrite(CCWpin, LOW);
      tripped = false;
      break;
    }
  }
  delay(100);
  tripped = false;
  }
  if (left_Rb.isHit()) {
    digitalWrite(CCWpin, LOW);
  }
  if (green.isHit()) {
    hallInterCount = 0;
    loopCounter = 0;
  }
  if (yellow.isHit()) {
    lcd.clear();
  }
  if (tripped) {
    tripped = false;
    digitalWrite(CCWpin, LOW);
  }
 lcd.setCursor(0,0);
 lcd.print("Steps passed:");
 lcd.setCursor(14,0);
 lcd.print(hallInterCount);

 lcd.setCursor(0,1);
 lcd.print("Temp passed:");
 lcd.setCursor(14,1);
 lcd.print(tempHallCount);

 lcd.setCursor(0,2);
 lcd.print("isr timing:");
 lcd.setCursor(14,2);
 lcd.print(time);

  lcd.setCursor(0,3);
 lcd.print("Loop count:");
 lcd.setCursor(14,3);
 lcd.print(loopCounter);

 loopCounter++;
}

void hallCount() {
    time = micros();
  hallInterCount = hallInterCount + 1;
  tripped = true;
   time = micros() - time;
}


Tap left_Rb(leftRed);
Tap yellow(yellowEnter);

unsigned long loopCounter = 0; //Loop counter to refresh screen.
unsigned long lcdUpdate;
unsigned long lastLcdUpdate;
int refreshScreen = 0; //boolean counter to clear screen.
