File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,18 @@ You can confirm what files have been uploaded with the `ls` command:
102102 mpremote connect port:rfc2217://localhost:4000 ls
103103```
104104
105- Once the required files are uploaded, activate the Wokwi REPL again and enter the following:
106-
105+ Once the required files are uploaded, you can either perform a hard reset of the device by accessing the REPL and entering:
107106``` python
108107import machine
109108machine.reset()
110109```
111110
112- This will perform a hard reboot of the simulation and automatically run the ` main.py ` file.
111+ Or issue <kbd >Ctrl</kbd > + <kbd >D</kbd > in the REPL, which will perform a soft reset.
112+
113+ In both instances, ` main.py ` will begin running automatically after the device finishes booting.
114+
115+ If using the ` soft-reboot ` command provided by ` mpremote ` , ` main.py ` will not begin running automatically - you will have to connect
116+ to the device and specify for it to run the file.
113117
114118![ Automatically running the main.py code on reset] ( ./images/vs-micropython-03.png )
115119
You can’t perform that action at this time.
0 commit comments