I've set it up with circuitpython, no code on it yet, and i'm using serial console in Mu to set the time.
It has a brand new CR1220 that shows 3.2v over the VIN and VBAT pins when not connected to anything, no soldering done to the board yet.
This is what i'm using in REPL to set the time, but every time power is disconnected the time appears to be reset.
Code: Select all
import rtc
import time
r = rtc.RTC()
r.datetime = time.struct_time((2023, 3, 15, 17, 12, 00, 3, 74, -1))
time.localtime()
Code: Select all
struct_time(tm_year=2023, tm_mon=3, tm_mday=15, tm_hour=17, tm_min=12, tm_sec=19, tm_wday=2, tm_yday=74, tm_isdst=-1)
Code: Select all
import rtc
import time
r = rtc.RTC()
time.localtime()
Code: Select all
struct_time(tm_year=2020, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=38, tm_wday=2, tm_yday=1, tm_isdst=-1)