Skip to content

Commit ee7bebc

Browse files
author
danicampora
committed
docs: Correct machine.RTC examples.
1 parent 4efed58 commit ee7bebc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/library/machine.RTC.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ and time.
99
Example usage::
1010

1111
rtc = machine.RTC()
12-
rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0))
13-
print(rtc.datetime())
12+
rtc.init((2014, 5, 1, 4, 13, 0, 0, 0))
13+
print(rtc.now())
1414

1515

1616
Constructors
@@ -23,7 +23,7 @@ Constructors
2323
Methods
2424
-------
2525

26-
.. method:: rtc.init(id, datetime)
26+
.. method:: rtc.init(datetime)
2727

2828
Initialise the RTC. Datetime is a tuple of the form:
2929

0 commit comments

Comments
 (0)