You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: distance.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ As well as being able to see the distance value, you can also get the sensor to
77
77
78
78
1. Try the previous loop again and observe the new range threshold.
79
79
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 inand out of rangeis 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 inand out of rangeis to use `when` properties, which can be used to trigger actions in the background while other things are happening in the code.
81
81
82
82
First, you need to create a function for what you want to happen when the sensor isinrange:
83
83
@@ -103,7 +103,7 @@ As well as being able to see the distance value, you can also get the sensor to
103
103
104
104
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.
105
105
106
-
1. You may have noticed that the sensor distance stopped at 1meter. This is the default maximum and can also be configured on setup:
106
+
1. You may have noticed that the sensor distance stopped at 1metre. This is the default maximum and can also be configured on setup:
0 commit comments