summaryrefslogtreecommitdiff
path: root/docs/pyboard/tutorial/pass_through.rst
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2018-02-20 17:34:59 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2018-02-20 17:34:59 -0800
commit20dd3b1e434f57a0609fd5306f47863396d1022e (patch)
tree47d7be30787716fcd95e01723942cdff06b0bd85 /docs/pyboard/tutorial/pass_through.rst
parentee90056866d2a8a1e0eec21f0ce5c60b741ea411 (diff)
Delete a bunch of docs, drivers and examples not relevant to CircuitPython.
This fixes #345 and fixes #215.
Diffstat (limited to 'docs/pyboard/tutorial/pass_through.rst')
-rw-r--r--docs/pyboard/tutorial/pass_through.rst18
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 a94e7363d..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))