Arduino-DCF77 icon indicating copy to clipboard operation
Arduino-DCF77 copied to clipboard

Allow to use RTC instead of TimeLib.

Open DCEM opened this issue 5 years ago • 0 comments

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 avatar Apr 08 '20 21:04 DCEM