summaryrefslogtreecommitdiff
path: root/tools/pyboard.py
AgeCommit message (Collapse)Author
2015-04-19tools/pyboard.py: Make it 8-bit clean, so it works with unicode chars.Damien George
Addresses issue #1190.
2014-12-20tools, pyboard.py: Write data to pyboard in chunks of 256 bytes.Damien George
This speeds up writes significantly.
2014-11-30tools: Make pyboard.py have infinite timeout when running script.Damien George
This makes pyboard.py much more useful for long running scripts. When running a script via pyboard.py, it now waits until the script finishes, with no timeout. CTRL-C can be used to break out of the waiting if needed.
2014-10-26stmhal: Improve REPL control codes; improve pyboard.py script.Damien George
Improvements are: 2 ctrl-C's are now needed to truly kill running script on pyboard, so make CDC interface allow multiple ctrl-C's through at once (ie sending b'\x03\x03' to pyboard now counts as 2 ctrl-C's). ctrl-C in friendly-repl can now stop multi-line input. In raw-repl mode, use ctrl-D to indicate end of running script, and also end of any error message. Thus, output of raw-repl is always at least 2 ctrl-D's and it's much easier to parse. pyboard.py is now a bit faster, handles exceptions from pyboard better (prints them and exits with exit code 1), prints out the pyboard output while the script is running (instead of waiting till the end), and allows to follow the output of a previous script when run with no arguments.
2014-10-19tools, pyboard.py: Allow exec argument to be bytes or str.Damien George
2014-10-01Enable device keyword option when running pyboard.py --tests and run-tests ↵blmorris
--pyboard
2014-05-03tools: pyboard.py now acts as a command-line program to run scripts.Damien George
You can run a local script on the pyboard using: python pyboard.py test.py where test.py is the local script you want to run.
2014-05-03Merge pull request #543 from lurch/patch-4Damien George
Make pyboard.enter_raw_repl more robust
2014-05-02Fix pyboard.py tests.Craig Barnes
2014-05-01Make pyboard.enter_raw_repl more robustAndrew Scheller
In case there's a program in the microcontroller's main.py running in an infinite loop
2014-04-21tools: Update pyboard.py to work with latest changes to RTC.Damien George
2014-04-14tools: Improve timout/reading of pyboard.py.Damien George
2014-04-13Make pyboard.py have its own exception; update run-tests for pyboard.Damien George
2014-04-03tools: Improve reading back from pyboard.Damien George
2014-04-03tools: pyboard.py can now execute a file remotely!Damien George
2014-03-24Add tools/pyboard.py, a simple module to communicate with the pyboard.Damien George
Using pyboard.py you can use Python running on your PC to execute commands on the connected pyboard. See examples in that file.