This template uses VScode tasks and run configurations to launch the current open Python file on a pybricks hub.
- Run
python -m venv .venv
to create a virtual environment - Run
pip install -r requirements.txt
to install the libraries - In
pybrickslaunch.py
, set theHUB_NAME
variable.
- Open the python file you want to run in the editor
- Go to "Run and debug"
- Choose "Pybricks: Current File" run configuration
- Click the play button