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


void pickDigit(int j) {
  // pick which digit to display depending on the value passed in j
  for (int i=0; i<4; i++)
    digitalWrite(digits[i], HIGH);

  digitalWrite(digits[j], LOW);

  
  //clear previous values of the num array, -1 value allows checking to see if a new value has been placed
  for (int i=0; i<4; i++)
    num[i] = -1;

  //if n is 0-9
  if (n < 10) {
