   delay(500);
 }
 
-void printCounter() {
+void updateDisplay() {
   // Magical sprintf creates a string for us to send to the s7s.
   //  The %4d option creates a 4-digit integer.
-  sprintf(tempString, "%4d", counter);
+  sprintf(tempString, "%4d", displayValue);
 
   // This will output the tempString to the S7S
   s7sSendStringI2C(tempString);

    case 2:
      setColor(0, 0, 0);
      clearDisplayI2C();
      counter = 0;
      break;
  }  
}


void adjustTime() {
  counter = potentiometerValue;
  printCounter();
}

void countDown() {
  counter--;
  printCounter();
  
  if (counter == 0) {
    soupsReady();
  } else {
    delay(500);

  Wire.write(decimals);
  Wire.endTransmission();
}

void A_RISE(){
 detachInterrupt(0);
 A_SIG=1;
 
 if(B_SIG==0)
 displayValue++;//moving forward
 if(B_SIG==1)
 displayValue--;//moving reverse
 Serial.println(displayValue);
 attachInterrupt(0, A_FALL, FALLING);
}

void A_FALL(){
  detachInterrupt(0);
 A_SIG=0;
 
 if(B_SIG==1)
 displayValue++;//moving forward
 if(B_SIG==0)
 displayValue--;//moving reverse
 Serial.println(displayValue);
 attachInterrupt(0, A_RISE, RISING);  
}

void B_RISE(){
 detachInterrupt(1);
 B_SIG=1;
 
 if(A_SIG==1)
 displayValue++;//moving forward
 if(A_SIG==0)
 displayValue--;//moving reverse
 Serial.println(displayValue);
 attachInterrupt(1, B_FALL, FALLING);
}

void B_FALL(){
 detachInterrupt(1);
 B_SIG=0;
 
 if(A_SIG==0)
 displayValue++;//moving forward
 if(A_SIG==1)
 displayValue--;//moving reverse
 Serial.println(displayValue);
 attachInterrupt(1, B_RISE, RISING);
}
