I was wondering if there is a simple way to synchronise the clock of the DS3231 module with that of a computer (serial ?) or a phone (bluetooth ?) rather than entering it by hand? I've searched the net but haven't found anything yet
Thanks for your help
Code: Select all
import adafruit_ds3231
from adafruit_clue import clue
i2c = board.I2C()
ds3231 = adafruit_ds3231.DS3231(i2c)
ds3231.datetime = time.struct_time((2023, 1, 28, 14, 20, 00, 6, -1, -1))