Skip to content

Commit cbbc7cc

Browse files
committed
docs(vscode): specify micropython reset methods
1 parent 842267b commit cbbc7cc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/vscode/vscode-micropython.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
108107
import machine
109108
machine.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

0 commit comments

Comments
 (0)