This is a CLI tool for MicroPython-based embedded systems.
Project description
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.)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
upyboard-0.9.24.tar.gz
(168.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
upyboard-0.9.24-py3-none-any.whl
(248.7 kB
view details)
File details
Details for the file upyboard-0.9.24.tar.gz.
File metadata
- Download URL: upyboard-0.9.24.tar.gz
- Upload date:
- Size: 168.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b68dae887daa3146fa12ba28d91fd5e3eab84b92c0701c5a23abe627311f4383
|
|
| MD5 |
8008f8f32fa51ede2f8cff8f384c79c0
|
|
| BLAKE2b-256 |
9bb02bed433eacfa21b587035d821f7d26535fd85b1432017d68e0d758a7ea94
|
File details
Details for the file upyboard-0.9.24-py3-none-any.whl.
File metadata
- Download URL: upyboard-0.9.24-py3-none-any.whl
- Upload date:
- Size: 248.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
023a222b668af6c67d06c35eaadc52826130c503ae9c94e9221029f8bb5bcb01
|
|
| MD5 |
4a8da9e3b8c059087a199fbbdfa20ead
|
|
| BLAKE2b-256 |
828b6dcdc0d8fddb2db265bff68ae6b503a29afbf33a821e8986048833d47dab
|