Files
pybricks-api/doc/main/iodevices/uartdevice.rst
T
Laurens Valk 238204d280 doc/main: Rename from doc/api.
The doc/api is a legacy name, which is confusing in the current use, since all build targets are now APIs.

Today we have:

doc/common: Common configuration and settings between all targets.

doc/main: Main Pybricks documentation at docs.pybricks.com.

doc/ide: Documentation shipped with the Pybricks Code IDE.
2021-07-14 11:39:20 +02:00

21 lines
542 B
ReStructuredText

Generic UART Device
^^^^^^^^^^^^^^^^^^^
.. note::
This class is **only supported on the EV3** at this time. It could be added
to Powered Up hubs in a future release. If you'd like to see this happen,
be sure to ask us on our `support page`_.
.. _support page: https://github.com/pybricks/support/issues/
.. figure:: ../../main/images/sensor_rj12_gray.png
:width: 25 %
.. autoclass:: pybricks.iodevices.UARTDevice
**Example: Read and write to a UART device**
.. literalinclude::
../../../examples/ev3/uart_basics/main.py