#include "SevenSegmentTM1637.h"
#include "SevenSegmentExtended.h"


const byte PIN_CLK = 2;  
const byte PIN_DIO = 3;   
SevenSegmentExtended      display(PIN_CLK, PIN_DIO);

const unsigned int clockSpeed = 10000;


void setup() {
  Serial.begin(9600);        
  display.begin();           
  display.setBacklight(100);  
  delay(1000);             
};

// run loop (forever)
void loop() {

  byte hours    = 14;                           // initialize hours
  byte minutes  = 39;                           // initialize minutes

  for ( ; hours < 24; hours++) {                // count hours   up to 24
    for ( ; minutes < 60; minutes++) {          // count minutes up to 59
      display.printTime(hours, minutes, true);  // display time
      delay(60000 / clockSpeed);                // clock delay ms
    };
    minutes = 0;                                // reset minutes
  };
};
4-Digit Display