mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-15 11:04:55 +00:00
The doc/api is a legacy name, which is confusing in the current use, since all build targets are now APIs. Today we have: doc/common: Common configuration and settings between all targets. doc/main: Main Pybricks documentation at docs.pybricks.com. doc/ide: Documentation shipped with the Pybricks Code IDE.
20 lines
341 B
ReStructuredText
20 lines
341 B
ReStructuredText
Tilt Sensor
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
.. figure:: ../../main/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
|