Skip to content
Snippets Groups Projects
Commit ee7bebc9 authored by danicampora's avatar danicampora
Browse files

docs: Correct machine.RTC examples.

parent 4efed58d
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment