docs/library/machine: Document machine.soft_reset() function.

pull/5478/head
Thorsten von Eicken 2020-01-09 17:22:03 -08:00 zatwierdzone przez Damien George
rodzic 339d0816c5
commit 1caede927a
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -27,6 +27,12 @@ Reset related functions
Resets the device in a manner similar to pushing the external RESET
button.
.. function:: soft_reset()
Performs a soft reset of the interpreter, deleting all Python objects and
resetting the Python heap. It tries to retain the method by which the user
is connected to the MicroPython REPL (eg serial, USB, Wifi).
.. function:: reset_cause()
Get the reset cause. See :ref:`constants <machine_constants>` for the possible return values.