MPyFlow - MicroPython extension for VS Code (ESP32, RP2040/Pico, STM32, ESP8266) #20072
markpekar
started this conversation in
Show and tell
Replies: 1 comment
|
I suggest you start testing with mpremote 1.30-preview asap, as that has a different reset behavior that is likely affecting your tool |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone!
I built MPyFlow, a lightweight VS Code extension for MicroPython boards (ESP32, RP2040/Pico, STM32, ESP8266, SAMD, etc.) built directly on top of MicroPython's official
mpremoteinstead of Node.js native serialport bindings.Why another VS Code extension?
Most existing extensions either rely on native Node/Electron serial addons (which break across VS Code updates) or spawn a fresh
mpremoteprocess per command (adding startup latency and COM-port lock conflicts with an open REPL).MPyFlow uses a persistent Python
mpremotesidecar communicating over NDJSON / JSON-RPC 2.0 (stdio) paired with VS Code's nativePseudoterminal, so file operations, script execution,mip, and the interactive REPL all share a single open connection.What it does
.venvin VS Code storage and installsmpremote(with an automatic standalone Python 3.12 fallback viauvif no system Python is available).automode): Detectssys.platformon connect and installs matchingmicropython-*-stubsfor Pylance/Pyright (esp32,esp8266,rp2,stm32,samd,unix, ormicropython-stdlib-stubsfallback).Project → On Board / Repository+Devices): Bidirectional drag-and-drop (files & folders), create/rename/recursive delete, incremental project sync (.mpyignore), and direct editing of board files with full Pylance highlighting andCtrl+Sauto-upload.print()live (no 10s timeout onwhile True:loops), supports interactiveinput(), instantCtrl+C/ stop, and one-click switching between scripts.mippackage installer (MicroPython: Install Package (mip)), Soft Reset, and Hard Reset.Links
So far it's been tested primarily on Windows with ESP32-S3 (MicroPython v1.26.0). Feedback, bug reports, and testing on RP2040/STM32/macOS/Linux would be very welcome!
All reactions