KevsRobots Learning Platform

Intermediate level MicroPython

100% Percent Complete

MP Remote

MicroPython Remote - a command-line tool for managing MicroPython devices.

By Kevin McAleer,    2 Minutes


MP Remote

MP Remote is a command-line tool for managing MicroPython devices. It provides a simple and intuitive interface to interact with your MicroPython boards, upload files, run scripts, and more.


Features

MP Remote offers the following features:

  • Interactive Shell: Connect to your MicroPython device and run commands interactively.
  • File Management: Upload, download, and delete files on your MicroPython device.
  • Script Execution: Run Python scripts on your MicroPython device.
  • REPL Mode: Enter the REPL mode to interact with your MicroPython device directly.
  • Device Information: Get information about your MicroPython device, such as the firmware version and available memory.

Installation

To install MP Remote, use the Python package manager pip. Run the following command in your terminal:

pip install mp-remote

Usage

After installing MP Remote, use the mp-remote command in your terminal to interact with your MicroPython device. Here are some common commands:

Connect to a Device

Connect to a MicroPython device using its serial port:

mp-remote connect /dev/ttyUSB0

Run a Script

Execute a Python script on the connected MicroPython device:

mp-remote run script.py

Upload a File

Upload a file to the connected MicroPython device:

mp-remote upload file.py

Download a File

Download a file from the connected MicroPython device:

mp-remote download file.py

Delete a File

Delete a file on the connected MicroPython device:

mp-remote delete file.py

Enter REPL Mode

Enter the REPL mode to interact with the MicroPython device directly:

mp-remote repl

Get Device Information

Get information about the connected MicroPython device:

mp-remote info

Summary

MP Remote is a versatile tool for managing MicroPython devices. With its interactive shell, file management capabilities, and script execution features, you can easily work with your MicroPython boards and create exciting projects.


< Previous