  */
 void clearDisplay()
 {
-  display->set(HPNumberDisplay::MINUS, false, 0);
-  display->set(HPNumberDisplay::MINUS, false, 1);
-  display->set(HPNumberDisplay::MINUS, false, 2);
-  display->set(HPNumberDisplay::MINUS, false, 3);
-  display->set(HPNumberDisplay::MINUS, false, 4);
+  display.set(HPNumberDisplay::MINUS, false, 0);
+  display.set(HPNumberDisplay::MINUS, false, 1);
+  display.set(HPNumberDisplay::MINUS, false, 2);
+  display.set(HPNumberDisplay::MINUS, false, 3);
+  display.set(HPNumberDisplay::MINUS, false, 4);
 }
 
 /*

  uint8_t minutes = counter.getMinutes();
  uint8_t seconds = counter.getSeconds();

  display->set(getDigit(hours,   0), false, 0);
  display->set(getDigit(minutes, 1), true,  1);
  display->set(getDigit(minutes, 0), false, 2);
  display->set(getDigit(seconds, 1), true,  3);
  display->set(getDigit(seconds, 0), false, 4);
}

/*

#include <TimeCounter.h>

//Pin definitions
namespace IO
{
  enum OutPins
    {
      TIME_RESET_LED = 13,
      TIME_LED       = 8,
      
      INPUT1         = 14,
      INPUT2         = 15,
      INPUT4         = 16,
      INPUT8         = 17,
      DP             = 18,

      ENABLE1        = 7,
      ENABLE2        = 9,
      ENABLE3        = 10,
      ENABLE4        = 19,
      ENABLE5        = 5,
    };

  enum InPins
    {
      TIME_RESET = 6
    };
  
  const uint8_t enable_pins[5] = {ENABLE1, ENABLE2, ENABLE3, ENABLE4, ENABLE5};
}

Scheduler scheduler;
TimeCounter counter;
HPNumberDisplay display(5, IO::enable_pins, IO::INPUT1, IO::INPUT2, IO::INPUT4, IO::INPUT8, IO::DP);

/*
  Returns the nth digit in a number
