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.
This commit is contained in:
Laurens Valk
2020-12-29 14:44:50 +01:00
parent 070264647f
commit 915d445561
+6 -11
View File
@@ -4,21 +4,16 @@ Tilt Sensor
.. figure:: ../../api/images/sensor_tilt.png
:width: 35 %
.. toggle-header::
:header: **Show/hide example**
**Example: Measuring pitch and roll**
.. literalinclude::
../../../examples/pup/sensor_tilt/basics.py
.. autoclass:: pybricks.pupdevices.TiltSensor
:no-members:
.. automethod:: tilt
.. .. automethod:: neutral
Examples
-------------------
.. .. automethod:: acceleration
Measuring pitch and roll
************************
.. .. automethod:: up
.. literalinclude::
../../../examples/pup/sensor_tilt/basics.py