RTC SDK

From ElectroDragon Wiki
Revision as of 23:21, 3 July 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Arduino Usage

  • Recommanded Arduino Library RTCx
  • Setup time by commands in serial: T1343779200
  • This will set the time by unixtime format
  • Remove the board a while and connect back and check
-----
Clock set
T1343779200
2012-08-01T00:00:0011:20, 3 July 2020 (EDT)
2012-08-01T00:00:01
unixtime = 1343779201
-----
2012-08-01T00:00:03
unixtime = 1343779203
-----

Autoprobing for a RTC...
Autoprobe found DS1307 at 0x68
2012-08-01T00:00:14
unixtime = 1343779214
-----

Documents