Skip to content

fix docs building #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ See Also:
<http://circuitpython.readthedocs.io/en/latest/docs/pyboard/tutorial/repl.html>`_ (the guide linked was written
for the pyboard, but it still works), then input the following:

::
.. code-block:: python

import board
dir(board)
Expand All @@ -101,7 +101,8 @@ Without a Context Manager
In the example below, we create the `HCSR04` object directly, get the distance every 2 seconds, then
de-initialize the device.

::
.. code-block:: python

import board
from adafruit_hcsr04 import HCSR04
sonar = HCSR04(trigger_pin=board.D5, echo_pin=board.D6)
Expand All @@ -121,7 +122,8 @@ In the example below, we use a context manager (the `with <https://docs.python.o
instance, again get the distance every 2 seconds, but then the context manager handles de-initializing the device for
us.

::
.. code-block:: python

import board
from adafruit_hcsr04 import HCSR04
with HCSR04(trigger_pin=board.D5, echo_pin=board.D6) as sonar:
Expand Down