#include <Wire.h>
#include "RTClib.h"
#include <TM1637Display.h>
#define CLK 2
#define DIO 3
RTC_DS1307 rtc;
TM1637Display display(CLK, DIO);
void setup() {
display.clear();
display.setBrightness(5);
rtc.begin();
}
void loop() {
DateTime now = rtc.now();
int hours = now.hour();
int minutes = now.minute();
display.showNumberDecEx(hours * 100 + minutes, 0b01000000);
delay(1000);
}