Skip to content
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
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ de-initialize the device.

::

from hcsr04 import HCSR04
from adafruit_hcsr04 import HCSR04
sonar = HCSR04(trig, echo)
try:
while True:
Expand All @@ -99,7 +99,7 @@ us.

::

from hcsr04 import HCSR04
from adafruit_hcsr04 import HCSR04
with HCSR04(trig, echo) as sonar:
try:
while True:
Expand Down