Page 1 of 1

Downloading MicroPython Scripts.

Posted: Sun Jan 16, 2022 7:51 am
by amit_dav
Greetings!!
I need some advise! We have written a PC (Windows) utility that generates some MicroPython code and downloads the same to a device running RPI Pico. Currently the utility needs AMPY a utility from Adafruit to download the MicroPython script and run it on the RPI device. This also means the user has to download and install python to make all this work.

I need to know if there is some way to download the script over REPL and run it, without the use of AMPY. I have tried it but not succeeded. I would be grateful if anyone could point me in that direction. Any documentation?


Regards Amit

Re: Downloading MicroPython Scripts.

Posted: Sun Jan 16, 2022 9:17 pm
by dhylands
I wrote rshell https://github.com/dhylands/rshell which can be used. You can also use mpremote: https://github.com/micropython/micropyt ... s/mpremote

I've written a python program called make_files.py that you run on the host: https://github.com/dhylands/upy-example ... e_files.py it wraps files and creates a .py file that you can run on your board (intended to be used with pyboard.py) and it will write the files out to your file system.