mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-07-27 19:57:02 +00:00
doc/pupdevices/ForceSensor: add examples
This commit is contained in:
@@ -295,6 +295,22 @@ Force Sensor
|
||||
.. figure:: ../api/images/sensor_force.png
|
||||
:width: 35 %
|
||||
|
||||
.. toggle-header::
|
||||
:header: **Show/hide examples**
|
||||
|
||||
|
||||
**Example 1: Measuring force and movement**
|
||||
|
||||
.. literalinclude::
|
||||
../../pybricks-projects/snippets/pup/sensor_force/basics.py
|
||||
|
||||
|
||||
**Example 2: Measuring peak force**
|
||||
|
||||
.. literalinclude::
|
||||
../../pybricks-projects/snippets/pup/sensor_force/peak.py
|
||||
|
||||
|
||||
.. autoclass:: pybricks.pupdevices.ForceSensor
|
||||
:no-members:
|
||||
|
||||
|
||||
+1
-1
Submodule pybricks-projects updated: 073357709b...c6a3d7a66e
Reference in New Issue
Block a user