#include <TM1637.h>
const int CLK = 2;
const int DIO = 3;
TM1637 tm(CLK, DIO);
void setup() {
tm.init();
tm.set(BRIGHT_TYPICAL); // Set display brightness
}
void loop() {
// Display 23.01
tm.display(0, 2); // Display '2'
tm.display(1, 2); // Display '2'
tm.display(2, 0); // Display '0' with dot
tm.display(3, 4); // Display '4'
delay(2000); // Wait for 2 seconds
// Display 2000
tm.display(0, 2); // Display '2'
tm.display(1, 0); // Display '0'
tm.display(2, 0); // Display '0'
tm.display(3, 0); // Display '0'
delay(2000); // Wait for 2 seconds
}