RTC
— 实时时钟¶
使用示例::(python)¶
1 2 3 4 5 6 7 8 9 10 11 12 | # coding=utf-8
# This is a sample Python script.
from driver import RTC
print("-------------------rtc test--------------------")
rtc = RTC()
rtc.open()
rtc.setTime(21, 3, 19, 18, 25, 8)
value = rtc.getTime()
print(value)
rtc.close()
print("-------------------rtc test--------------------")
|