dhylands wrote: ↑Sat Apr 03, 2021 5:05 pm
You can use pyboard.py (found in micropython/tools) to upload a file into memory and execute it.
Something like:
Code: Select all
pyboard.py -d /dev/ttyACM0 name-of--python-file
I unfortunately get the following:
>robert@mountain-cabin:~/micropython-1.14/tools$
pyboard.py /dev/ttyACM0 blinkpico.py
bash: pyboard.py: command not found
All the tools including pyboard.py are in the tools directory, although not sure why many of them have an * after the name?
Perhaps I missed a step during the micropython installation? I downloaded the tar.xz file and used tar -d micropython-1.14.tar.xz to decompress the folder and then moved the entire folder from downloads to my home directory?
robert@mountain-cabin:~/micropython-1.14/tools$ l
build-stm-latest.sh* gen-changelog.sh* mpy_bin2res.py* uf2conv.py*
cc1* gen-cpydiff.py mpy_cross_all.py* uncrustify.cfg
ci.sh* gendoc.py mpy_ld.py* upip.py
codeformat.py* insert-usb-ids.py mpy-tool.py* upip_utarfile.py
codestats.sh* make-frozen.py* pyboard.py* verifygitlog.py*
dfu.py* makemanifest.py pydfu.py*
file2h.py metrics.py* tinytest-codegen.py*
As always your input is very welcome and appreciated, thanks
Cheers