You can find the most recent pyboard.py in the micropython tools directory:
https://github.com/micropython/micropyt ... pyboard.py
passing array of data to host computer
Re: passing array of data to host computer
Thanks for your response.
But what is the proper way to do something like execfile from rshell? How do I send a command from rshell to tell the pyboard to exectute a file?
But what is the proper way to do something like execfile from rshell? How do I send a command from rshell to tell the pyboard to exectute a file?
Re: passing array of data to host computer
What I mean is that me using pyboard directly feels like I am going around rshell and re-inventing the wheel. I don't want to do that.
Re: passing array of data to host computer
To execute a file on the pyboard using rshell, I normally use the repl command and then import the file I want to execute from the repl.
You can combine these two into a single line command: and that will execute /flash/hello.py on my pyboard. In my own personal workflow I edit the files on the host and use rshell to copy/test them. So I normally combine a copy command, the repl and import all on a single line: then it gets stored in the history that way and I can use the up arrow to retrieve the previous command and do it all over again.
You can combine these two into a single line command:
Code: Select all
repl ~ import hello
Code: Select all
cp hello.py /flash; repl ~ import hello