This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

2. Making a UART - USB pass through

It’s as simple as:

import pyb
import select

def pass_through(usb, uart):
    while True:[usb, uart], [], [])
        if usb.any():
        if uart.any():

pass_through(pyb.USB_VCP(), pyb.UART(1, 9600, timeout=0))