 // I2C address of our S7S
 const byte s7sAddress = 0x71;
 
-unsigned int counter = 9900;  // This variable will count up to 65k
+
+
+unsigned int counter = 990;  // This variable will count up to 65k
 char tempString[10];  // Will be used with sprintf to create strings
 
 void setup()

// Pin number the push button is connected to
const int buttonPin = 2;

// Somewhere to store the state of the button
int buttonState = 0;

// Potentiometer PIN
const int potentiometerPin = A0;

// Value of the potentiometer
int potentiometerValue = 0;
int potentiometerLastValue = 0;

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

{
  // Read value of potentiometer
  potentiometerValue = analogRead(potentiometerPin);
  if (potentiometerValue != lastPotentiometerValue) {
    Serial.println(potentiometerValue); 
  }
  lastPotentiometerValue = potentiometerValue;

  if (hasButtonBeenPushed()) {
    Serial.println("Button Pushed"); 
    buttonPressCounter++;
    Serial.println(buttonPressCounter); 
  }
  
  switch (buttonPressCounter % 3) {
    case 0:
      setColor(0, 255, 0);
      adjustTime();
      break;
    case 1:
      setColor(255, 0, 0);
      countDown();
      break;
    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);
  }
}

void soupsReady() {
  buttonPressCounter = 2;
  setColor(255, 255, 0);
  s7sSendStringI2C("   0");
  delay(500);

  setColor(0, 255, 255);
  s7sSendStringI2C("  00");
  delay(500);

  setColor(255, 0, 255);
  s7sSendStringI2C(" 000");
  delay(500);
  
  setColor(255, 255, 255);
  s7sSendStringI2C("0000");
  delay(500);
}

void printCounter() {
  // Magical sprintf creates a string for us to send to the s7s.
  //  The %4d option creates a 4-digit integer.
  sprintf(tempString, "%4d", counter);

  // This will output the tempString to the S7S
  s7sSendStringI2C(tempString);
}

/* Interrupt emulation. Detect when the button was pushed once and only once
 * while it is held down
 */ 
boolean hasButtonBeenPushed() {
  boolean hasButtonBeenPushed = false;
  
  // Read the state of the button
  buttonState = digitalRead(buttonPin);
  if (buttonState == LOW) {
    if (lastButtonState == HIGH) {
      hasButtonBeenPushed = true;
    }
  }
  lastButtonState = buttonState;
  
  return hasButtonBeenPushed;
}


// Sets the color of the RGB LEB
void setColor(int red, int green, int blue)
