Hi,
I cabled three DS1307 RTC on three Pico as described in module 10.4 of your book “Learn Raspberry Pi Pico/Pico W with MicroPython”
I am experiencing the same trouble with the three different Pico (W and W2) and three RTC.
After having run 10_4_1_sync_rtc then 10_4_2_rtc_display_time_oled, while still connected to Thonny, everythings fine. Actual day and time.
Then of course I named it main.py to run it out of Thonny on a mains usb and the real date is always lost for “01-01-2021 00:00:01”
This happens on any of the three Pico/RTC builts.
I reloaded from your link the 10_4_1_sync_rtc and 10_4_2_rtc_display_time_oled to be sure they were not corrupted but to no avail.
Obviously the RTC doesn’t keep it’s initialization.
Any tips welcome
Renaud