docs: Correct machine.RTC examples.

pull/1517/merge
danicampora 2015-10-22 20:23:28 +02:00
rodzic 4efed58df1
commit ee7bebc94f
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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: