mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 17:46:19 +00:00
Split all classes to their own file. This keeps things organized, and allows per-class comments about compatibility. Also flatten toggled examples.
21 lines
541 B
ReStructuredText
21 lines
541 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:: ../../api/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
|