#include <TM1637.h>

const int CLK = 22;
const int DIO = 23;
const int CLK2 = 2;
const int DIO2 = 4;
TM1637 tm(CLK, DIO);
TM1637 tm2(CLK2, DIO2);

void setup() {
  tm.init();
  tm2.init();
  tm.set(BRIGHT_TYPICAL);
  tm2.set(BRIGHT_TYPICAL);
}

unsigned int counter = 0;

void loop() {
  tm.display(0, (counter / 1000) % 10);
  tm.display(1, (counter / 100) % 10);
  tm.display(2, (counter / 10) % 10);
  tm.display(3, counter % 10);
  tm2.display(0, 1);
  tm2.display(1, 2);
  tm2.display(2, 3);
  tm2.display(3, 4);
  counter++;
  if (counter == 10000) {
    counter = 0;
  }
  delay(100);
}
4-Digit Display
4-Digit Display