api/pupdevices: add ForceSensor

Initial class without any methods for the SPIKE Force Sensor
This commit is contained in:
Laurens Valk
2020-05-27 13:58:30 +02:00
committed by laurensvalk
parent e67c048b18
commit 2dd133d5e5
2 changed files with 16 additions and 0 deletions
+11
View File
@@ -162,6 +162,17 @@ Ultrasonic Sensor
.. automethod:: pybricks.pupdevices::UltrasonicSensor.lights.off
Force Sensor
^^^^^^^^^^^^^^^^^^^^^^^^^
.. todo:: Support for this sensor is not yet implemented. API is experimental.
.. figure:: ../api/images/sensor_force.png
:width: 35 %
.. autoclass:: pybricks.pupdevices.ForceSensor
:no-members:
.. Tilt Sensor
.. ^^^^^^^^^^^^^^^^^^^^^^^^^
+5
View File
@@ -148,3 +148,8 @@ class UltrasonicSensor:
"""LEGO® SPIKE Color Sensor."""
lights = _LightArray(3)
class ForceSensor:
"""LEGO® SPIKE Force Sensor."""
pass