diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2018-02-27 15:24:16 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2018-02-27 15:24:16 -0800 |
| commit | bf05183158c67c4ef1824c3b1296d401bc7754d8 (patch) | |
| tree | e33edfecab159138716a2d40dd69e2a1fe23e03f /docs/pyboard/tutorial/pass_through.rst | |
| parent | 5eb3b208e8d612e2b50bc6e402a2a8901c72640d (diff) | |
| parent | 892d5cda63fbee051b88db3d9cc8e4ba8555cb96 (diff) | |
Merge remote-tracking branch 'adafruit/2.x' into merge_2x
Diffstat (limited to 'docs/pyboard/tutorial/pass_through.rst')
| -rw-r--r-- | docs/pyboard/tutorial/pass_through.rst | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/pyboard/tutorial/pass_through.rst b/docs/pyboard/tutorial/pass_through.rst deleted file mode 100644 index 012a90764..000000000 --- a/docs/pyboard/tutorial/pass_through.rst +++ /dev/null @@ -1,18 +0,0 @@ -Making a UART - USB pass through -================================ - -It's as simple as:: - - import pyb - import select - - def pass_through(usb, uart): - usb.setinterrupt(-1) - while True: - select.select([usb, uart], [], []) - if usb.any(): - uart.write(usb.read(256)) - if uart.any(): - usb.write(uart.read(256)) - - pass_through(pyb.USB_VCP(), pyb.UART(1, 9600, timeout=0)) |
