Programming with MicroPython: Network Time Protocol
Import FutureBoard Library
Import the Library to make use of its functions.
08: Network Time Protocol
Import NTP Library
1. Initiate the Real Time Clock
2. Sync with Network Time
Parameter zone is for GMT, default is 8.
3. Get the current time
Returns a list containing the current time, [year, month, day, week, hour, minute, second].
Sample Program
Last updated