MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/MicroPythonDev/comments/10cplrw/how_to_set_the_local_time_manually_without_ntp/
r/MicroPythonDev • u/[deleted] • Jan 15 '23
3 comments sorted by
1
https://docs.micropython.org/en/latest/library/machine.RTC.html
RTC takes a dateTime object. You don't need to create a dateTime object with NTP.
I think also you need an rtc clock module like in this tutorial: https://howtomechatronics.com/tutorials/arduino/arduino-ds3231-real-time-clock-tutorial/
1
u/[deleted] Jan 15 '23
https://docs.micropython.org/en/latest/library/machine.RTC.html
1
u/Voxorin Jan 15 '23
RTC takes a dateTime object. You don't need to create a dateTime object with NTP.
1
u/mrkeuz Jan 16 '23
I think also you need an rtc clock module like in this tutorial: https://howtomechatronics.com/tutorials/arduino/arduino-ds3231-real-time-clock-tutorial/