#Lab 5 Interfacing RTC with ESP32 or LPC 2148
import machine
import ds1307
import time
#ds 1307 - is library for real time clock and date
i2c=machine.I2C(scl=machine.Pin(22), sda= machine.Pin(21))
ds=ds1307.DS1307(i2c)
ds.halt(False)

while True:
    print(ds.datetime())
    time.sleep(1)

# ds1307.py for library
GND5VSDASCLSQWRTCDS1307+