Skip to content

Commit 8746e7d

Browse files
committed
copy edit
1 parent 1e1a25a commit 8746e7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

distance.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ As well as being able to see the distance value, you can also get the sensor to
7777

7878
1. Try the previous loop again and observe the new range threshold.
7979

80-
1. The `wait_for` functions are **blocking**, which means they halt the program until they are triggered. Another way of doing something when the sensor goes in and out of range is to use `when` properties, which can be used to trigger actions in the background, while other things are happening in the code.
80+
1. The `wait_for` functions are **blocking**, which means they halt the program until they are triggered. Another way of doing something when the sensor goes in and out of range is to use `when` properties, which can be used to trigger actions in the background while other things are happening in the code.
8181

8282
First, you need to create a function for what you want to happen when the sensor is in range:
8383

@@ -103,7 +103,7 @@ As well as being able to see the distance value, you can also get the sensor to
103103

104104
Now these triggers are set up, you'll see "Hello" printed when the your hand is in range, and "Bye" when it's out of range.
105105

106-
1. You may have noticed that the sensor distance stopped at 1 meter. This is the default maximum and can also be configured on setup:
106+
1. You may have noticed that the sensor distance stopped at 1 metre. This is the default maximum and can also be configured on setup:
107107

108108
```python
109109
ultrasonic = DistanceSensor(echo=17, trigger=4, max_distance=2)
@@ -121,6 +121,6 @@ As well as being able to see the distance value, you can also get the sensor to
121121

122122
Now you've learned to use an ultrasonic distance sensor, you could:
123123

124-
- Build a proximity sensor alert using a buzzer or just playing sound
124+
- Build a proximity sensor alert using a buzzer or a sound file
125125
- Build a Pi camera photo booth which is activated when a person is close enough to the camera
126126
- Build a robot with a distance sensor to stop it bumping into other objects

0 commit comments

Comments
 (0)