Skip to content

Commit 1e1a25a

Browse files
committed
copy edit
1 parent 20cf8d9 commit 1e1a25a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

distance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ To use the ultrasonic distance sensor in Python, you need to know which GPIO pin
3636
ultrasonic.distance
3737
```
3838

39-
You should see a number, this is the distance of the nearest object, in meters.
39+
You should see a number: this is the distance to the nearest object, in meters.
4040

41-
1. Try using a loop to print the distance continuously, while waving your hand in front of it to alter the distance reading:
41+
1. Try using a loop to print the distance continuously, while waving your hand in front of the sensor to alter the distance reading:
4242

4343
```python
4444
while True:
@@ -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

0 commit comments

Comments
 (0)