.. pybricks-requirements:: pybricks-iodevices

Powered Up Device
^^^^^^^^^^^^^^^^^

.. figure:: ../cad/output/iodevice-pupdevice.png
   :width: 60 %

.. autoclass:: pybricks.iodevices.PUPDevice
    :no-members:

    .. automethod:: pybricks.iodevices.PUPDevice.info

    .. automethod:: pybricks.iodevices.PUPDevice.read

    .. automethod:: pybricks.iodevices.PUPDevice.write

Examples
-------------------

Detecting devices
******************************

.. literalinclude::
    ../../../examples/pup/iodevices_pupdevice/port_info.py
