import machine,ds1307,time
i2c=machine.I2C(sda=machine.Pin(21),scl=machine.Pin(22))
ds=ds1307.DS1307(i2c)
ds.halt(False)
now=(2023,10,18,5,10,28,1,1)
while True:
print(ds.datetime())
time.sleep(1)import machine,ds1307,time
i2c=machine.I2C(sda=machine.Pin(21),scl=machine.Pin(22))
ds=ds1307.DS1307(i2c)
ds.halt(False)
now=(2023,10,18,5,10,28,1,1)
while True:
print(ds.datetime())
time.sleep(1)