// TM1637 SevenSegment Counter Wokwi Example
//
// https://wokwi.com/projects/339227323398095442
#include <TM1637.h>
const int CLK = 2;
const int DIO = 3;
TM1637 tm(CLK, DIO);
void setup() {
tm.init();
tm.set(BRIGHT_TYPICAL);
}
unsigned int counter = 0;
void loop() {
tm.display(0, (counter / 600) % 6);
tm.display(1, (counter / 60) % 6);
tm.display(2, (counter / 6) % 6);
tm.display(3, counter % 6);
counter++;
if (counter == 2400) {
counter = 0;
}
delay(1000);
}