mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
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.
21 lines
542 B
ReStructuredText
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
|