Files
pybricks-api/doc/api/pupdevices/tiltsensor.rst
T
Laurens Valk 915d445561 doc/pupdevices/TiltSensor: split examples
Now that each device is on its own page, we no longer need to collapse snippets to reduce page size. Now they can just all be at the bottom of the page. This also gives each a dedicated link which is easier when giving support.
2020-12-29 14:44:50 +01:00

20 lines
340 B
ReStructuredText

Tilt Sensor
^^^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: ../../api/images/sensor_tilt.png
:width: 35 %
.. autoclass:: pybricks.pupdevices.TiltSensor
:no-members:
.. automethod:: tilt
Examples
-------------------
Measuring pitch and roll
************************
.. literalinclude::
../../../examples/pup/sensor_tilt/basics.py