Hi everyone!
I have a question and probably is a dumb one. I'm new in python and microPython and I just realized from the video in the main page (4'10") of this website that I can run a "test" script using the command "python pyboard.py test.py". Well, I figure out that python is a instruction of the python interpreter used to run any script but I tryed to do it from the pyboard and it's not recognized as a valid command. Can someone explain me what does that line do and where the file "pyboard.py" is?
Thanks!
python command
Re: python command
"python pyboard.py test.py" is a command you run on your PC while the pyboard is connected.
If you have already a file called test.py on your pyboard, you would run it with
import test.py
from the REPL prompt of pyboard.
If you have already a file called test.py on your pyboard, you would run it with
import test.py
from the REPL prompt of pyboard.
Re: python command
pyboard.py can be found in the tools directory (i.e. https://github.com/micropython/micropyt ... ster/tools)