LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mpremote

microPython remote control tool

TLDR

Connect to device
$ mpremote
copy
Run Python code
$ mpremote exec "[print('hello')]"
copy
Copy file to device
$ mpremote cp [local.py] :[remote.py]
copy
Copy file from device
$ mpremote cp :[remote.py] [local.py]
copy
Run script on device
$ mpremote run [script.py]
copy
Enter REPL
$ mpremote repl
copy
List files on device
$ mpremote ls
copy
Mount local directory
$ mpremote mount [.]
copy

SYNOPSIS

mpremote [command] [options]

DESCRIPTION

mpremote is the MicroPython remote control tool. It manages MicroPython devices.The tool copies files, runs code, and provides REPL access. Works over USB serial.

PARAMETERS

COMMAND

Operation to perform.
connect DEVICE
Connect to specific device.
exec CODE
Execute Python code.
cp SRC DST
Copy files (: prefix for device).
run FILE
Run local script on device.
repl
Enter interactive REPL.
--help
Display help information.

INSTALL

sudo zypper install mpremote
copy
brew install mpremote
copy
nix profile install nixpkgs#mpremote
copy

CAVEATS

Requires MicroPython device. Serial connection needed. Python 3 required.

HISTORY

mpremote was developed by the MicroPython project as the official device management tool.

SEE ALSO

python(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid