Skip to content

Instantly share code, notes, and snippets.

@robin7331
Created September 19, 2025 23:13
Show Gist options
  • Select an option

  • Save robin7331/d41e5120fcce26761966cfa21589914c to your computer and use it in GitHub Desktop.

Select an option

Save robin7331/d41e5120fcce26761966cfa21589914c to your computer and use it in GitHub Desktop.
MicroPython mpremote Commands / Shortcuts
# Place this file here: ~./config/mpremote/config.py
# Debug: Will mount your local ./src folder to the MCU and run main
# Deploy: Will copy all your files to the MCU so it can run on its own
# Clear: Removes all files from the MCU
commands = {
"clear": ["rm", "-r", ":"],
"deploy": ["cp", "-r", "src/.", ":"],
"debug": ["mount", "./src", "exec", "import main"],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment