// 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(3, 0);
tm.display(2, 1);
delay(1000);
tm.display(3,9);
tm.display(2,0);
delay(1000);
tm.display(3,8);
delay(1000);
tm.display(3,7);
delay(1000);
tm.display(3,6);
delay(1000);
tm.display(3,5);
delay(1000);
tm.display(3,4);
delay(1000);
tm.display(3,3);
delay(1000);
tm.display(3,2);
delay(1000);
tm.display(3,1);
delay(1000);
tm.clearDisplay();
delay(1000);
counter++;
if (counter == 10000) {
counter = 0;
}
delay(100);
}