This is a template project for MicroPython projects.
- use mpremote to upload code to the device
- linting using pylance or pyright
- code formatting using black and isort
- Open the repo using VSCode
code . - Edit
requirements-dev.txtto select the micropythonportand version you want to develop for. - Create a virtual environment for the project
- using VSCode
F1 or Ctrl-Shift-PPython: Create Environment- Select the
venvenvironment tyep and the Python interpreter - Select the requirements-dev.txt file.
- or manually using:
python -m venv .venv- Activate the virtual environment using
source .venv/bin/activate(Linux) or.venv\Scripts\activate(Windows) pip install -r requirements-dev.txt
- using VSCode