diff options
Diffstat (limited to 'tests/pyb/rtc.py')
-rw-r--r-- | tests/pyb/rtc.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pyb/rtc.py b/tests/pyb/rtc.py new file mode 100644 index 0000000000..ac716b27fc --- /dev/null +++ b/tests/pyb/rtc.py @@ -0,0 +1,6 @@ +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]) |