diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-16 14:09:51 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-21 22:30:32 +0200 |
commit | dffa9f6da65cd03e834b2ed3914f40428f72e49f (patch) | |
tree | 1f2e51f17c511f884db77e47d481c0f9c1b6bed2 /cc3200/tools/smoke.py | |
parent | 660f8613fd8e38863998a9758d97eada0eebc47d (diff) | |
download | micropython-dffa9f6da65cd03e834b2ed3914f40428f72e49f.tar.gz micropython-dffa9f6da65cd03e834b2ed3914f40428f72e49f.zip |
cc3200: New SD and RTC API plus os and time modules' extensions.
Diffstat (limited to 'cc3200/tools/smoke.py')
-rw-r--r-- | cc3200/tools/smoke.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cc3200/tools/smoke.py b/cc3200/tools/smoke.py index 8b0fb5fc8e..45187b6976 100644 --- a/cc3200/tools/smoke.py +++ b/cc3200/tools/smoke.py @@ -63,12 +63,12 @@ print(ls) # test the real time clock rtc = pyb.RTC() -while rtc.datetime()[7] > 800: +while rtc.now()[6] > 800: pass -time1 = rtc.datetime() +time1 = rtc.now() pyb.delay(1000) -time2 = rtc.datetime() -print(time2[6] - time1[6] == 1) -print(time2[7] - time1[7] < 50) +time2 = rtc.now() +print(time2[5] - time1[5] == 1) +print(time2[6] - time1[6] < 5000) # microseconds |