diff --git a/doc/api/pupdevices.rst b/doc/api/pupdevices.rst index 1a58c70..da6b8d8 100644 --- a/doc/api/pupdevices.rst +++ b/doc/api/pupdevices.rst @@ -212,6 +212,14 @@ Infrared Sensor .. figure:: ../api/images/sensor_proximity.png :width: 35 % +.. toggle-header:: + :header: **Show/hide example** + + **Example: Measuring distance, object count, and reflection** + + .. literalinclude:: + ../../pybricks-projects/snippets/pup/sensor_infrared/basics.py + .. autoclass:: pybricks.pupdevices.InfraredSensor :no-members: @@ -228,6 +236,13 @@ Tilt Sensor .. figure:: ../api/images/sensor_tilt.png :width: 35 % +.. toggle-header:: + :header: **Show/hide example** + + **Example: Measuring pitch and roll** + + .. literalinclude:: + ../../pybricks-projects/snippets/pup/sensor_tilt/basics.py .. autoclass:: pybricks.pupdevices.TiltSensor :no-members: diff --git a/pybricks-projects b/pybricks-projects index 796f4e6..3b9663d 160000 --- a/pybricks-projects +++ b/pybricks-projects @@ -1 +1 @@ -Subproject commit 796f4e63d9a77ed10295964ee3003c20ab616da3 +Subproject commit 3b9663d93b8f826cd10c92a99156e47b364f8f50