api/builtin: add missing DCMotor.stop() method

This was missing. It also has a different default value
from the Motor class, so Motor overrides this method.
This commit is contained in:
David Lechner
2020-03-12 12:52:27 -05:00
parent 6ed6ec0378
commit abe24cf289
3 changed files with 15 additions and 0 deletions
+3
View File
@@ -74,6 +74,9 @@ This class can be used to control classic LEGO motors using converter cables.
.. automethod:: pybricks.builtins.DCMotor.dc
:noindex:
.. automethod:: pybricks.builtins.DCMotor.stop
:noindex:
Ev3dev sensors
^^^^^^^^^^^^^^^^^^^^^
+3
View File
@@ -14,6 +14,9 @@ Motors without Rotation Sensors
.. automethod:: pybricks.builtins.DCMotor.dc
:noindex:
.. automethod:: pybricks.builtins.DCMotor.stop
:noindex:
Motors with Rotation Sensors
^^^^^^^^^^^^^^^^^^^^^^^^^^^^