mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 17:46:19 +00:00
This page was getting very long, so split it up for easier navigation (#33).
25 lines
458 B
ReStructuredText
25 lines
458 B
ReStructuredText
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
|
|
|
|
.. .. automethod:: acceleration
|
|
|
|
.. .. automethod:: up
|