#include <Wire.h>
#include <RTCDS1307.h>
#include <TM1637TinyDisplay.h>
#define CLK 2
#define DIO 3
TM1637Display display(CLK, DIO);
DS1307 RTC(SDA, SCL);
//module connection pin digital
void setup() {
// put your setup code here, to run once:
RTC.begin();
display.setBrightness(0x0f);
0=minggu,1=senin
}
void loop() {
// put your main code here, to run repeatedly:
t = RTC.getTime();
h = t.hour,DEC;
m = t.min.DEC;
s = t.sec.DEC;
h = (h*100+m);
if(f==0){
display.showNumberDecEx(h,64);
f=0;}
elsa{
display.showNumberDecEx(h,0)
f=0;
}
}
delay(1000);
}