From dffa9f6da65cd03e834b2ed3914f40428f72e49f Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Wed, 16 Sep 2015 14:09:51 +0200 Subject: cc3200: New SD and RTC API plus os and time modules' extensions. --- cc3200/tools/smoke.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cc3200/tools') diff --git a/cc3200/tools/smoke.py b/cc3200/tools/smoke.py index 8b0fb5fc8..45187b697 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 -- cgit v1.2.3