Example: 50-Arduino-Boards/Giga-H7/50-Board-Control/rtc.py
# 本作品采用MIT许可证授权。
# 版权所有 (c) 2013-2023 OpenMV LLC。保留所有权利。
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# RTC 示例
#
# 此示例展示了如何使用 RTC。
import time
from machine import RTC
rtc = RTC()
rtc.datetime((2013, 7, 9, 2, 0, 0, 0, 0))
while True:
print(rtc.datetime())
time.sleep_ms(1000)