diff options
author | Damien George <damien.p.george@gmail.com> | 2017-08-23 17:01:43 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-08-23 17:01:43 +1000 |
commit | b84268d49c1099a193d2fdc92e3831f9eef8b3b3 (patch) | |
tree | c5e60cc8bc10ec5ed87327fb31ceddd789896441 | |
parent | fc483706d37b2e1a0829d14f019124ecb01f6d6e (diff) | |
download | micropython-b84268d49c1099a193d2fdc92e3831f9eef8b3b3.tar.gz micropython-b84268d49c1099a193d2fdc92e3831f9eef8b3b3.zip |
docs/pyboard/tutorial: Add "timeout=0" to UART in pass-through example.
Without this the pass-through will pause for 1 second at each character.
-rw-r--r-- | docs/pyboard/tutorial/pass_through.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pyboard/tutorial/pass_through.rst b/docs/pyboard/tutorial/pass_through.rst index a94e7363d2..012a907648 100644 --- a/docs/pyboard/tutorial/pass_through.rst +++ b/docs/pyboard/tutorial/pass_through.rst @@ -15,4 +15,4 @@ It's as simple as:: if uart.any(): usb.write(uart.read(256)) - pass_through(pyb.USB_VCP(), pyb.UART(1, 9600)) + pass_through(pyb.USB_VCP(), pyb.UART(1, 9600, timeout=0)) |