Import FutureBoard Library
Import the Library to make use of its functions.
|from future import *|
08: Network Time Protocol
Import NTP Library
from machine import RTC
FutureBoard can only connect to wireless networks with 2.4GHz frequency.
1. Initiate the Real Time Clock
|rtc = RTC()|
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].
If you have any question, please feel free to contact us at Discord, we will always be there to help.