Skip to content

Add RTC library and examples #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 30, 2019
Merged

Add RTC library and examples #68

merged 2 commits into from
Sep 30, 2019

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Sep 30, 2019

The PR adds a RTC lib that allows users to leverage the 32kHz xtal on most SparkFun boards to track date/time.

  • Basic functions: getTime(), setToCompilerTime(), setTime()
  • Two examples demo'ing a basic write/read and deep sleep with a CT6 wakeup interrupt for low power measurements

I haven't the chance to measure current consumption of pure RTC.

Future adds: There is an interesting cal routine (12.1.3.1) that could be added as an example to enable end users to calibrate the XT/32kHz circuit to gain even better accuracy.

@oclyke oclyke merged commit dc4fdf2 into master Sep 30, 2019
@oclyke oclyke deleted the addRTC branch September 30, 2019 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants