mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
Previously, all renders were created and added manually when a newly supported device was added to the documentation. This commit revisits all diagrams by creating them using a single LDRAW multi-file part model and LPUB3D building instructions file. This makes perspective and resolution consistent across all images, and we could update them all at once if needed. It also removes the background from all images so they can be used with different documentation themes.
21 lines
547 B
ReStructuredText
21 lines
547 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/cad/output/iodevice-rj12grey.png
|
|
:width: 25 %
|
|
|
|
.. autoclass:: pybricks.iodevices.UARTDevice
|
|
|
|
**Example: Read and write to a UART device**
|
|
|
|
.. literalinclude::
|
|
../../../examples/ev3/uart_basics/main.py
|