#include <TM1637Display.h>
// Define the common DIO pin connected to both displays
#define DIO_PIN 2
// Define the CLK pins for each display
#define CLK_PIN_1 3
#define CLK_PIN_2 4
// Create instances of the TM1637Display for each display
TM1637Display display1(CLK_PIN_1, DIO_PIN);
TM1637Display display2(CLK_PIN_2, DIO_PIN);
void setup() {
// Set the display brightness for both displays (0-7)
display1.setBrightness(7);
display2.setBrightness(7);
}
void loop() {
// Display different numbers on each display
int number1 = 1234;
int number2 = 5678;
// Display numbers on display 1
display1.showNumberDec(number1);
// Display numbers on display 2
display2.showNumberDec(number2);
// Add a delay to display the numbers (you can change this as needed)
delay(1000); // Display for 1 second on both displays
// Clear both displays
display1.clear();
display2.clear();
// Add any additional code or functionality here
}