m5stack / M5StickC

M5StickC Arduino Library
MIT License
477 stars 222 forks source link

Set millis or nanos for the RTC #134

Closed danspage closed 1 year ago

danspage commented 3 years ago

I did some searching both on the web and in the source code, and could not find a way to set the millis or nanos of the RTC clock. Is there a way to do this currently? My end goal is to sync the RTC with a GPS via a serial connection, so that the clocks on separate M5StickC's will match up accurately.

Tinyu-Zhao commented 1 year ago

The RTC chip is the BM8563, which has a maximum accuracy of only seconds.

DataSheet