Replies: 1 comment 2 replies
-
Look at Not really sure why you'd want to set the RTC. Unless you put the Pico to sleep internal time is kept track of just fine. The RTC does have uses for waking up from "low power" sleep mode (but on the original Pico low power really isn't all that low), but it keeps track in such a weird "1970s digital watch" format that not many things can actually use... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Pico-W application that needs to start a task at a precise time. I've used the provided ntp client example to read time from ntp servers, but I want to use ntp to set the hardware rtc in the Pico periodically to maintain accuracy, and use then use the functions provided in the sdk to read the time and to enable and disable alarms. I figured someone had already done this but haven't found any examples (using C++ and the Arduino core), so just thought I'd ask if anyone might know of any? It seems to be a matter of reorganizing the ntp data to comply with the hardware.rtc binary format so examples showing how to do that would be helpful. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions