mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user