mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-15 11:04:55 +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.
31 lines
651 B
ReStructuredText
31 lines
651 B
ReStructuredText
Remote Control
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
.. figure:: ../../main/images/pupremote.png
|
|
:width: 60 %
|
|
|
|
.. autoclass:: pybricks.pupdevices.Remote
|
|
:no-members:
|
|
|
|
.. autoattribute:: pybricks.pupdevices::Remote.address
|
|
:annotation:
|
|
|
|
.. automethod:: pybricks.pupdevices::Remote.light.on
|
|
|
|
.. automethod:: pybricks.pupdevices::Remote.light.off
|
|
|
|
.. automethod:: pybricks.pupdevices::Remote.buttons.pressed
|
|
|
|
.. note::
|
|
|
|
The ``light`` and ``address`` features are not yet supported.
|
|
|
|
Examples
|
|
-------------------
|
|
|
|
Check which buttons are pressed
|
|
*******************************
|
|
|
|
.. literalinclude::
|
|
../../../examples/pup/remote/basics.py
|