diff --git a/doc/api/customdevices.rst b/doc/api/customdevices.rst index f288bee..f078736 100644 --- a/doc/api/customdevices.rst +++ b/doc/api/customdevices.rst @@ -79,3 +79,10 @@ the `ev3dev I2C`_ page. UART Device ^^^^^^^^^^^^^ .. autoclass:: pybricks.customdevices.UARTDevice + +.. toggle-header:: + :header: **Show/hide example** + + **Example: Read and write to a UART device.** + + .. literalinclude:: ../../pybricks-projects/snippets/ev3/uart_basics/main.py diff --git a/pybricks-projects b/pybricks-projects index 028efa9..c017248 160000 --- a/pybricks-projects +++ b/pybricks-projects @@ -1 +1 @@ -Subproject commit 028efa9c6c058730813e629292236e487941558b +Subproject commit c017248f435ed0ca8a1bae20ee606b38184fb4be