   //testCaseAllNum();
   //splitNumber(-99.99999);
   displayTemperature();
-
 }
 
 void clearLEDs() {

  pinMode(latchPin, OUTPUT);
  pinMode(dataPin, OUTPUT);  
  pinMode(clockPin, OUTPUT);
}

const long refreshInterval = 10; //refresh delay in microseconds
long previousRefresh = 0; //previous refresh time
int refreshLoop = 0;  //counter for refreshing loop

void loop() {
  //current timer variables to reset at each iteration
  unsigned long currentRefresh = micros();  //get current microseconds for refresh counter

  clearLEDs();



    double tempC = (500.0 * analogRead(tempPin)) / 1204; //poll analog to read value from LM35
    double aveTempC = smoothTemp(tempC);
    double aveTempF = c2f(aveTempC);
    
    if (displayCelcius)
      splitNumber(aveTempC);
    else
      splitNumber(aveTempF);
  }
}

