   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);

// This MOD the number of states determines the state we are in
int buttonPressCounter = 0;

// Number to display on the LED S7S
int displayValue = 0;
int lastDisplayValue = 0;

// Rotary encoder signals
int A_SIG=0, B_SIG=1;

// Pin numbers for the RGB LEB
const int ledRedPin = 9;
