api/pupdevices/Remote: publish draft api

This commit is contained in:
Laurens Valk
2020-12-29 19:51:48 +01:00
parent 32a47bcee0
commit c2d2884794
4 changed files with 41 additions and 13 deletions
+8
View File
@@ -18,6 +18,7 @@
ultrasonicsensor
forcesensor
light
remote
.. class:: DCMotor
:noindex:
@@ -88,3 +89,10 @@
.. figure:: ../../api/images/light.png
:width: 90 %
:target: light.html
.. class:: Remote
:noindex:
.. figure:: ../../api/images/pupremote.png
:width: 50 %
:target: remote.html
+20
View File
@@ -0,0 +1,20 @@
Remote Control
^^^^^^^^^^^^^^^^^^^^^^^^^
.. warning::
This remote is not yet supported.
Upvote `this issue <https://github.com/pybricks/support/issues/186>`_ if
you want to see this happen.
.. figure:: ../../api/images/pupremote.png
:width: 60 %
.. autoclass:: pybricks.pupdevices.Remote
:no-members:
.. automethod:: pybricks.pupdevices::Remote.light.on
.. automethod:: pybricks.pupdevices::Remote.light.off
.. automethod:: pybricks.pupdevices::Remote.buttons.pressed