#include <TM1637TinyDisplay.h>
TM1637TinyDisplay display(14, 12);
int counter = 0;
void setup() {
display.setBrightness(100);
pinMode(13, INPUT_PULLUP);
Serial.begin(115200);
Serial.write("hello");
delay(100);
}
void loop() {
display.showString(String(counter).c_str());
if (digitalRead(13 == LOW))
{
Serial.write(counter);
counter++;
}
delay(10);
}