ropg / ezTime

ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
MIT License
327 stars 92 forks source link

[Feature Request] sync time to a PPS signal, e.g. from GPS #116

Open cyberman54 opened 3 years ago

cyberman54 commented 3 years ago

Thanks for providing this lib!

It would be useful to have an API to sync time with a high precise pulse-per-second (PPS) signal, as provided by many GPS chipsets. Typically, a PPS signal is fed into a GPIO of MCU, which triggers an interrupt. The interrupt service routine shall sync the internal time of ezTime lib on top of every second.

How could that be done?

cyberman54 commented 3 years ago

Proposal PR: https://github.com/ropg/ezTime/pull/117