MicrocontrollersFreeAll

MicroPython + mpremote

Python for microcontrollers. mpremote copies files, opens a REPL and runs scripts on a Pico or ESP32 from the terminal.

What you use it for

  • Program the Pico and ESP32 in Python
  • Quick experiments in the REPL
  • Automate uploads

Commands

Install mpremote
pip install mpremote
Open a REPL
mpremote connect auto repl
Copy a file to the board
mpremote cp main.py :
Run a script without saving
mpremote run test.py

Pro tips

  • Flash the right .uf2 for your exact board (Pico, Pico W, Pico 2 W).
  • Name your file main.py to run it at power-on.