From 915d4455613b92f2d59ea7d7c4da006db61d5e9c Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Tue, 29 Dec 2020 14:44:50 +0100 Subject: [PATCH] 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. --- doc/api/pupdevices/tiltsensor.rst | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/doc/api/pupdevices/tiltsensor.rst b/doc/api/pupdevices/tiltsensor.rst index c5ab7f0..802f74f 100644 --- a/doc/api/pupdevices/tiltsensor.rst +++ b/doc/api/pupdevices/tiltsensor.rst @@ -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