#include <Arduino.h>
#include "tm1637.h"
// #include <TM1637.h>
// TM1637 tm(CLK_PIN, DIO_PIN);
unsigned int counter = 0;
int point_s = 1;
void setup() {
Serial.begin(9600);
Serial.println("Start...");
tm_init();
// tm.init();
// tm.set(BRIGHT_TYPICAL);
}
void loop() {
Serial.println("Loop~");
point_s = !point_s;
tm_set_point(point_s);
tm_display(0, (counter / 1000) % 10);
tm_display(1, (counter / 100) % 10);
tm_display(2, (counter / 10) % 10);
tm_display(3, counter % 10);
counter++;
if (counter == 10000) {
counter = 0;
}
delay(100);
}