#include <Arduino.h>
#include <TM1637TinyDisplay.h>
// Define the connections pins
#define CLK 8
#define DIO 12
TM1637TinyDisplay display(CLK, DIO); // Create an instance of the TM1637Display
uint8_t data[] = {
SEG_A | SEG_B | SEG_C, // T
SEG_A | SEG_F | SEG_G | SEG_E | SEG_D, // E
SEG_A | SEG_F | SEG_G | SEG_C | SEG_D, // S
SEG_A | SEG_F | SEG_E // T
};
int val = 0;
void setup() {
display.setBrightness(3); // Set the display brightness (0-7)
};
void loop() {
////// Display String
// Display the data
display.setSegments(data);
val++;
display.showNumberDec(val,true);
delay(100);
};