diff options
author | danicampora <daniel@wipy.io> | 2015-10-22 20:23:28 +0200 |
---|---|---|
committer | danicampora <daniel@wipy.io> | 2015-10-22 20:23:28 +0200 |
commit | ee7bebc94fa5a19757724187bc2b0b1727bb87ff (patch) | |
tree | 7ba1ad6380048e89b63e4d8bb2f48fea989cfdb2 | |
parent | 4efed58df157a88c30c0ae7307ea2bb5585a5f23 (diff) | |
download | micropython-ee7bebc94fa5a19757724187bc2b0b1727bb87ff.tar.gz micropython-ee7bebc94fa5a19757724187bc2b0b1727bb87ff.zip |
docs: Correct machine.RTC examples.
-rw-r--r-- | docs/library/machine.RTC.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/library/machine.RTC.rst b/docs/library/machine.RTC.rst index fcfc14f500..c69e4781a2 100644 --- a/docs/library/machine.RTC.rst +++ b/docs/library/machine.RTC.rst @@ -9,8 +9,8 @@ and time. Example usage:: rtc = machine.RTC() - rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0)) - print(rtc.datetime()) + rtc.init((2014, 5, 1, 4, 13, 0, 0, 0)) + print(rtc.now()) Constructors @@ -23,7 +23,7 @@ Constructors Methods ------- -.. method:: rtc.init(id, datetime) +.. method:: rtc.init(datetime) Initialise the RTC. Datetime is a tuple of the form: |