circuitpython/tests/pyb/rtc.py
2014-05-04 12:40:51 +01:00

9 lines
139 B
Python

import pyb
from pyb import RTC
rtc = RTC()
print(rtc)
rtc.datetime((2014, 1, 1, 1, 0, 0, 0, 0))
pyb.delay(1000)
print(rtc.datetime()[:7])