See this mpfshell.
-
Based on the mpfshell-lite.
-
Start your Python and MicroPython programming anytime, anywhere.
-
Right - click shortcuts to control your board.
- Step 1. Install Python 3.5.4 +
- Step 2. pip install mpfshell-lite.
- Step 3. Open or create a Python file and start coding!
In the terminal input mpfs
into the following mode shows you already installed.
Open the Command Palette (Command+Shift+P on macOS and Ctrl+Shift+P on Windows/Linux) and type in one of the following commands:
Command | Description |
---|---|
Set Open args |
Set args of the Open, save configuration file. |
Start REPL |
directly into your MicroPython REPL. |
Run this file |
Run the code file you specify. |
Open Tools |
directly into mpfshell equivalent. |
To see all available Python commands, open the Command Palette and type mpfshell
.
To execute a xx.py file, you need to right-click and select Run this file
.
The terminal will be the following result.
such as mpfs > runfile ts.py
.
It will generate settings.json
{
"mpfshell.open": ""
}
This is actually the open argument to the mpfshell.
You can change it if your Want to use webrepl.
{
"mpfshell.open": "ws:192.168.1.1,1234" // mpfs > open ws:192.168.1.1,1234.
}
It will be saved in the workspace configuration, and each run this code will be asked Set open args
if value is default or auto judge.
Near future.