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.
This commit is contained in:
Damien George 2017-08-23 17:01:43 +10:00
parent fc483706d3
commit b84268d49c
1 changed files with 1 additions and 1 deletions

View File

@ -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))