Page 1 of 1

Controlling the micropython repl from Python with PySerial

Posted: Mon Aug 12, 2019 9:32 am
by richardstephens
I'd like to be able to control my Micropython's REPL from my PC.

Initially this is just going to do some trivial stuff (e.g. execute some python), but once I get the basics sorted I'd like to make a tool that automates deploying and testing of code to the pyboard.

I was able to write a few bytes to the board (visible when I manually connect to the repl), but I was not able to actually execute a statement.

Re: Controlling the micropython repl from Python with PySerial

Posted: Mon Aug 12, 2019 10:00 am
by Roberthh
Look at pyboard.py in the tools directory of the repository. That offers what you need.
https://github.com/micropython/micropyt ... ster/tools