#include <Arduino.h>
#include <TM1637Display.h>
#include<RTClib.h>
// Module connection pins (Digital Pins)
#define CLK 2
#define DIO 3
// The amount of time (in milliseconds) between tests
#define TEST_DELAY 2000
RTC_DS1307 rtc;
RTC_DS1307 rtc1;
TM1637Display display(CLK, DIO);
void setup()
{
rtc.begin();
}
void loop()
{
DateTime now1=rtc.now();
DateTime now=rtc.now();
display.setBrightness(0x0f);
display.showNumberDec(now.second(), 1, 2, 0);
}