mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
api/pupdevices/PFMotor: DCMotor functionality
This replaces the on-off method in ColorDistanceSensor.remote() with a PFMotor class that works just like the DCMotor class. This provides much more functionality without having to invent a new API.
This commit is contained in:
+14
-2
@@ -266,9 +266,21 @@ Color and Distance Sensor
|
||||
|
||||
.. automethod:: pybricks.pupdevices::ColorDistanceSensor.light.off
|
||||
|
||||
.. rubric:: Power Functions 1.0 Control
|
||||
Power Functions
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. automethod:: pybricks.pupdevices.ColorDistanceSensor.remote
|
||||
.. autoclass:: pybricks.pupdevices.PFMotor
|
||||
:noindex:
|
||||
:no-members:
|
||||
|
||||
.. automethod:: pybricks.pupdevices.PFMotor.dc
|
||||
:noindex:
|
||||
|
||||
.. automethod:: pybricks.pupdevices.PFMotor.stop
|
||||
:noindex:
|
||||
|
||||
.. automethod:: pybricks.pupdevices.PFMotor.brake
|
||||
:noindex:
|
||||
|
||||
|
||||
Color Sensor
|
||||
|
||||
Reference in New Issue
Block a user