Skip to content
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

Allow to use RTC instead of TimeLib. #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

DCEM
Copy link

@DCEM DCEM commented Apr 8, 2020

The constructor now additionally accepts:

  • EnableInputPullup
  • CompareToUTC

Allow to use RTC instead of TimeLib.

To archive this, you have to #define DCF77_USE_RTC before #include "DCF77.h".
This should work with any RTC. Since the DCF77 library needs to get the time from the RTC you need to put
the function call inside the RTC_Callback_Wrapper(). Look at the ZeroRTCSync example for more details.

DCEM added 5 commits April 6, 2020 14:23
Optional argument  to allow that will turn on the input-pullup.
TimeLib can be disabled via define, to archive compability with older versions.
A callback is used to allow different RTC.
The constructor additionally accepts: CompareToUTC
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.

1 participant