# SwissTime.py

from RTC_DS1307 import RTC
from time import sleep
from TM1637 import FourDigit
        
d = FourDigit()
rtc = RTC()
showColon = True
while True:
    hr = rtc.getHours()
    min = rtc.getMinutes()
    d.show("%02d%02d" %(hr, min))
    d.setColon(showColon)
    showColon = not showColon
    sleep(0.5)
