microbit-lib

DS1307

DS1307 real-time clock (RTC) is a low power, full binary-coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM.

I2C Address

0x68

API

example

from microbit import *
import DS1307

ds = DS1307.DS1307()

ds.DateTime()
ds.DateTime([2018, 3, 9, 4, 23, 0, 1, 0])

ds.Hour()

From microbit/micropython Chinese community.
www.micropython.org.cn