Programming with MicroPython: Network Time Protocol
Import FutureBoard Library
from future import *08: Network Time Protocol
Import NTP Library
from machine import RTC
import ntptime1. Initiate the Real Time Clock
rtc = RTC()2. Sync with Network Time
ntptime.settime(zone=8)3. Get the current time
rtc.datetime()Sample Program
Last updated