bulletmark / mpr Goto Github PK
View Code? Open in Web Editor NEWWrapper for MicroPython mpremote tool
Wrapper for MicroPython mpremote tool
I was trying out mpr as a better mpremote and was wanting to copy a directory from local to remote recursively.
I am running in a windows command prompt and have a virtual env with mpr installed:
(raspberry-pi-pico) C:\Users\<snip>\gui\demo>pip list
Package Version
------------------ -------
mpr 1.19
mpremote 1.20.0
pip 22.3.1
and help for command says put can do recursive
(raspberry-pi-pico) C:\Users\<snip>\gui\demo>mpr put -h
usage: mpr put [-h] [-f] [-r] src [src ...] dst
Copy one or more local files to directory on device.
positional arguments:
src name of local source file[s] on PC
dst name of destination dir on device
options:
-h, --help show this help message and exit
-f, --file destination is file, not directory
-r, --recursive copy local directory recursively to / on device
on my local I have
(raspberry-pi-pico) C:\Users\<snip>\gui\demo>tree
C:.
├───driver
│ └───generic
└───lib
and to "copy local directory recursively":
(raspberry-pi-pico) C:\Users\<snip>\gui\demo>mpr put -r driver /
mpremote requires source must be directory and target must be "/"
what I see is driver is a directory
and target I have put as /
I have also tried the destination as:
Hi... Tool looks interesting.. and did some small tests on a windows 10 platform. It appears i have problems opening a serial port here. Tried various versions of COM4, 'COM4' and even renamed it to COM3 whereafter i checked -c3... But no dice.. Has this been tested on windows?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.