This commit is contained in:
Correl Roush 2023-03-21 01:11:39 -04:00
parent d648562683
commit f63c16ce26

View file

@ -29,3 +29,10 @@ functions in two modes:
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.
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.