#include <TM1637.h>

int CLK = 7;
int DIO = 6;

TM1637 tm(CLK, DIO);

void setup() {
  tm.init();
  tm.set(7);
  for (int i=0; i<=4; i++) {
    tm.display(i,9);
  }
  // put your setup code here, to run once:
}
int a=0,s1=9,s2=9,m1=9,m2=9;
void loop() {
  // put your main code here, to run repeatedly:
  if (m2<0) {
    m2=9;
    m1--;
  }
  if (m1<0) {
    m1=9;
    s2--;
  }
  if (s2<0) {
    s2=9;
    s1--;
  }
  tm.display(0,s1); tm.display(2,m1); tm.display(3,m2);
  tm.display(1,s2);
  m2--;
  delay(10);

}
4-Digit Display