diff options
Diffstat (limited to 'docs/tutorial/pass_through.rst')
| -rw-r--r-- | docs/tutorial/pass_through.rst | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/tutorial/pass_through.rst b/docs/tutorial/pass_through.rst deleted file mode 100644 index a94e7363d..000000000 --- a/docs/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)) |
