from machine import RTC
import time
rtc = RTC()
rtc.datetime((2022, 6, 29, 19, 32, 0, 0, 0)) # set a specific date and time
rtc.datetime() # get date and time
while (1):
print(rtc.datetime())
time.sleep(1)
from machine import RTC
import time
rtc = RTC()
rtc.datetime((2022, 6, 29, 19, 32, 0, 0, 0)) # set a specific date and time
rtc.datetime() # get date and time
while (1):
print(rtc.datetime())
time.sleep(1)