Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

MicroPython • Re: Raspberry Pi Pico WH main.py

$
0
0
I made a syntax error, which I discovered when I went through Mike's code.
I disabled the sync_time
rtc = RTC()
connect_wifi() # Connect to Wi-Fi
# sync_time_with_ip_geolocation_api(rtc) # Sync time from the API

When I enabled the last line, it was running properly.
rtc = RTC()
connect_wifi() # Connect to Wi-Fi
sync_time_with_ip_geolocation_api(rtc) # Sync time from the API

Yvonne

Statistics: Posted by lodv — Sat Mar 08, 2025 9:56 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles