Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jgxi55kdkgd/micropython
A VS Code devcontainer for MicroPython with support for ESP32 and Windows 11 USB access
https://github.com/jgxi55kdkgd/micropython
devcontainer esp32 micropython
Last synced: about 1 month ago
JSON representation
A VS Code devcontainer for MicroPython with support for ESP32 and Windows 11 USB access
- Host: GitHub
- URL: https://github.com/jgxi55kdkgd/micropython
- Owner: jgxi55kdkgd
- Created: 2024-12-20T05:35:51.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-20T06:17:22.000Z (about 1 month ago)
- Last Synced: 2024-12-20T07:24:43.571Z (about 1 month ago)
- Topics: devcontainer, esp32, micropython
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Micropython VS Code devcontainer for ESP32 with Windows 11 USB support
Important: Before starting this container your USB device must **already be available** to WSL as /dev/ttyUSB0. See the windows_usb_passthrough folder for more details and useful scripts. This is because the container assumes your device is already accessible via USB0 (the devcontainer.json -device option).
You will need...
1. Docker installed and running,
2. VS Code plus the Docker Containers extension installed...
...then you can simply fork this repo, bring up the command palette in vscode and start typing "Dev Containers: Clone Repository In Container Volume...". Your newly created development container will automatically be linked to your forked git repo.
3. An ESP32 device flashed with Micropython (see Micropython site for details)A "project" is simply any folder you create at the default top level of the container volume - eg /workspaces/micropython/Project1.
Why a "devcontainer"?
Dev Containers are useful because they provide a consistent, reproducible, and isolated development environment, ensuring that all developers on a project work with the same dependencies, tools, and configurations. By leveraging containerization (typically using Docker), Dev Containers eliminate "works on my machine" issues, as the development environment is portable and independent of the host operating system. This is particularly valuable for onboarding new team members quickly or working across different projects with conflicting dependencies. Additionally, they integrate seamlessly with editors like Visual Studio Code, enabling developers to work inside the container with access to the same IDE features, extensions, and debugging tools as on the host. Dev Containers also support CI/CD pipelines by allowing developers to align their local environment with the build and test environments, further improving workflow consistency and reliability.
There are plenty of resources explaining how to set up Docker to run a devcontainer so this isn't covered here.