 // 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()

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

  // Read the state of the button
  buttonState = digitalRead(buttonPin);
  if (buttonState == LOW) {
    Serial.println("Button pushed ON");
  }
  
  // Set color of LED
  if (buttonState == LOW) {
    setColor(255, 0, 0);
  } else {
    int green = potentiometerValue / 10;
    setColor(0, green, 0);
  }
  
    
  // 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);

  // Print the decimal at the proper spot
  if (counter < 10000)
    setDecimalsI2C(0b00000100);  // Sets digit 3 decimal on
  else
    setDecimalsI2C(0b00001000);

  counter++;  // Increment the counter
  delay(100);  // This will make the display update at 10Hz.*/
}

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

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

// The last state the button was in
int buttonState = 0;
int lastButtonState = 0;

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

// Potentiometer PIN
const int potentiometerPin = A0;

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

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