updates
This commit is contained in:
parent
d648562683
commit
f63c16ce26
1 changed files with 7 additions and 0 deletions
|
@ -29,3 +29,10 @@ functions in two modes:
|
||||||
is executed after =boot.py= and functions as an application code entry point.
|
is executed after =boot.py= and functions as an application code entry point.
|
||||||
/Execution of this file is skipped if the REPL is not in "friendly" mode, e.g.
|
/Execution of this file is skipped if the REPL is not in "friendly" mode, e.g.
|
||||||
if a tool has switched to the "raw" REPL./
|
if a tool has switched to the "raw" REPL./
|
||||||
|
|
||||||
|
The =mpremote= tool uses the raw REPL to execute its commands, including
|
||||||
|
performing a soft reset. Therefore, it is advisable to keep application code
|
||||||
|
(particularly application loops) in =main.py= rather than =boot.py= so that
|
||||||
|
=mpremote= commands aren't blocked by running application code. This way,
|
||||||
|
application code is only executed when requested explicitly while developing,
|
||||||
|
but will still execute automatically during a normal device boot.
|
||||||
|
|
Loading…
Reference in a new issue