Skip to main content

This tool is supports microcontrollers to which MicroPython is ported.

Help

upy

or

upy --help

Finding the serial port on a board with MicroPython

  • Explore a serially connected MicroPython device.
  • The MicroPython version and device type are printed.
  • Currently supported devices are Digi XBee3 and Raspberry Pi Pico 2 W
upy scan
  • The --raw (or -r) option returns low-level board information.
upy scan -r

Option Rules

  • Options and values can have spaces or omit spaces.
  • Options and values can be inserted with the = character.
<option><value>  
<option> <value>
<option>=<value> 

Environment

  • Convert a VSCode workspace into a MicroPython workspace
  • Assuming the result of the scan argument is COM3
upy -sport com3 env
upy sport
Current serial port: COM8
upy sport com4
erial port set to: COM4

Initialize Microcontroller file system

  • If you created MicroPython workspace in the current path, omit the --sport(or -s) options in all subsequent commands.
upy init

or, You can also use the --sport(or -s) options explicitly.

upy --sport <your_port_name> init

Behavior is not guaranteed if you explicitly specify the device name.

upy init ticle

Check list of Microcontroller file systems

  • If path is omitted, the output will be the files or directories contained in the top-level directory.
upy ls [<path>/][remote_directory]

Put PC file or directroy into Microcontroller

  • If path or remote name is omitted, a remote name identical to the local name is created in the top-level directory.
upy put <local_name> [[path][/remote_name]]

Get Microcontroller file to PC

  • Getting the current directory is not supported.
upy get <remote_file_name> <local_file_name>

Delete Microcontroller file or directory

upy rm [path/]<remote_name>

Executes the PC's MicroPython script by sequentially passing it to the Microcontroller

  • Wait for serial input/output until the script finishes
  • To force quit in running state, press Ctrl+c
upy <micropython_script_file>

or

upy run [-i | -n] <micropython_script_file>

Additional Options

  • -i: Display the pressed key in the terminal window (Echo on)
  • -n: Does not wait for serial output, so it appears as if the program has terminated on the PC side.
    • Script continues to run on Microcontroller
    • Used to check data output serially from Microcontroller with other tools (PuTTY, etc.)

Metadata

Release files for upyboard 0.9.35

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for upyboard 0.9.35
File Size Uploaded
upyboard-0.9.35.tar.gz 187.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for upyboard 0.9.35
File Interpreter ABI Platform
upyboard-0.9.35-py3-none-any.whl Python 3 none any Details

Total release size: 456.4 kB

Release files / upyboard-0.9.35.tar.gz

Download URL upyboard-0.9.35.tar.gz
Size 187.6 kB
Tags Source
SHA-256 checksum
How to use checksums
de384c8f2c89a9c755030ab3f675ca7fa254d07446b38a23ac44f66489ea1bb1
BLAKE2b-256 checksum
How to use checksums
705c4c7b44ecbfcf204f92fbfd1c0e81dbc5c104373f0a109cb8f9d74055ae61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / upyboard-0.9.35-py3-none-any.whl

Download URL upyboard-0.9.35-py3-none-any.whl
Size 268.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90a870bca227cd18426ab6836b9df3c2d369c83172cd7dc64e565e046165457d
BLAKE2b-256 checksum
How to use checksums
3013950f09a503e92f2ce64fa3de8d2d9dda70998a79e0564d222ef9c5c2d900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.9.35 This release

2 release files

0.9.28

2 release files

0.9.10

2 release files

0.9.2

2 release files

0.9.0

2 release files

0.8.6

2 release files

0.8.0

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page