| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
| |
The adapter class "TelnetToSerial" is used to access the Telnet
connection using the same API as with the serial connection. The
function pyboard.run-test() has been removed to made the module
generic and because this small test is no longer needed.
|
| |
|
|
|
|
|
|
|
|
|
| |
When looking for chars to indicate raw repl is active, look for the full
string of chars to improve reliability of entering raw repl correctly.
Previous to this patch there was the possibility that raw repl was
entered in a dirty state, where not all input chars from previous
invocation were drained.
|
| |
|
|
|
|
|
|
|
|
|
| |
Update pydfu.py to match with the version from openmv.
I just updated the openmv version to work with both of the
PyUSB 1.0.0.b1 and 1.0.0.b2
See: https://github.com/walac/pyusb/blob/master/ReleaseNotes.rst
|
| |
|
| |
|
| |
|
|
|
|
| |
Recognize and handle "package not found" error.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In raw REPL ">" indicates the prompt. We originally read this character
upon entering the raw REPL, and after reading the last bit of the
output. This patch changes the logic so the ">" is read only just
before trying to send the next command. To make this work (and as an
added feature) the input buffer is now flushed upon entering raw REPL.
The main reason for this change is so that pyboard.py recognises the EOF
when sys.exit() is called on the pyboard. Ie, if you run pyboard.py
with a script that calls sys.exit(), then pyboard.py will exit after
the sys.exit() is called.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
So unix version, which now includes upip as a frozen module, can be built
without Internet connection.
|
| |
|
|
|
|
|
| |
Currently, frozen packages are not supported, but eventually they should be,
so make sure to store complete directory hierarchy.
|
| |
|
|
|
|
|
| |
This allows pyboard.py to be used over a UART interface
rather than just over a USB serial interface.
|
| |
|
|
|
|
|
|
|
|
| |
upip is a simple and light-weight package manager for MicroPython modules,
offering subset of pip functionality. upip is part of micropython-lib
project: https://github.com/micropython/micropython-lib/tree/master/upip
This script bootstraps upip by downloading and unpacking it directly from
PyPI repository, with all other packages to be installed with upip itself.
|
|
|
|
| |
Also flush stdout so you can see output as it comes.
|
| |
|
|
|
|
| |
Addresses issue #1190.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Only modules (not packages) supported now. Source modules can be converted
to frozen module structures using tools/make-frozen.py script.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Replaces RUN_TEST=1 definition; now "make test" in qemu-arm directory
will run tests/basics/ and check that they all succeed.
This patch also enables the test on Travis CI.
|
|
|
|
|
|
| |
We don't have an explicit ChangeLog file, but don't really need one
because we use a good version control system. This script is useful if
you need a pretty-printed ChangeLog for some reason.
|
|
|
|
| |
This speeds up writes significantly.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
You can do:
make USE_PYDFU=1 deploy
to use pydfu.py
|
| |
|
|
|
|
| |
--pyboard
|
| |
|
| |
|
|
|
|
|
|
| |
-t/--target is a pip option. Trying to use pip options for different meanings
in pip-micropython may lead to big confusion. That's why the original passed
any extra parameters using environment variables. "All options belong to pip."
|
|
|
|
|
|
|
| |
Also add -t/--target option to pip-micropython to allowing installing to
the pyboard.
Thanks to turbinenreiter/Sebastian Plamauer for the patch.
|
| |
|
| |
|
|
|
|
| |
Addresses some issues from #585.
|