Replies: 5 comments 2 replies
-
I would try with mpremote |
Beta Was this translation helpful? Give feedback.
-
It seems to me you are not realy copying the script to your board. Instead, you are making it to run you main.py. From the pyboard.py documentation: Running a script on the deviceIf you have a script, app.py that you want to run on a device, then use:
Note that this doesn’t actually copy app.py to the device’s filesystem, it just loads the code into RAM and executes it. Any output generated by the program will be displayed. |
Beta Was this translation helpful? Give feedback.
-
As suggested above, you could use mpremote, or rsync or even thonny to copy your scripts to your board. I suggest you use thonny: despite some issues, it is very convenient to use, especially for beginners like us. 😃 |
Beta Was this translation helpful? Give feedback.
-
I routinely use pyboard.py to copy files to a range of boards. The syntax you need is:
Substituting your device name. |
Beta Was this translation helpful? Give feedback.
-
Thank you to everyone who responded to my question. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Beginner question: i can communicate with my pyboard v.1. via the pyboard.py tool. That is, run code and upload files etc. However, when I upload a main.py and press reset, I would expect the code inside to be executed, which is not the case. Better said, it seems to execute code of a previous version or that of another main (but which does not exist according to ls). The entry
pyb.main('main.py')
in boot.py is active.
What can I do?
joh
Beta Was this translation helpful? Give feedback.
All reactions