Add some 'infrared' api docs (#326)
* Add some 'infrared' api docs * Fix display messages * Change discussion of distance to relative * Include motor speed note
This commit is contained in:
@ -20,7 +20,7 @@ Both **near** and **far** have distance thresholds set in centimeters. The **det
|
||||
> * ``object detected``: some other object is sending out an ultrasonic sound
|
||||
> * ``object near``: the sensor detected something within the distance of the near threshold
|
||||
> * ``object far``: the sensor detected somethin within the distance of the far threshold
|
||||
* **body**: the code you want to run when something happens to the touch sensor.
|
||||
* **body**: the code you want to run when something is dectected by the ultrasonic sensor.
|
||||
|
||||
## Example
|
||||
|
||||
|
@ -17,9 +17,9 @@ Both **near** and **far** have distance thresholds set in centimeters. The **det
|
||||
## Parameters
|
||||
|
||||
* **event**: the object detection action to wait for. The detection types (events) are:
|
||||
> * ``object detected``: some other object is sending out an ultrasonic sound
|
||||
> * ``object near``: the sensor detected something within the distance of the near threshold
|
||||
> * ``object far``: the sensor detected somethin within the distance of the far threshold
|
||||
> * ``detected``: some other object is sending out an ultrasonic sound
|
||||
> * ``near``: the sensor detected something within the distance of the near threshold
|
||||
> * ``far``: the sensor detected somethin within the distance of the far threshold
|
||||
|
||||
## Example
|
||||
|
||||
|
Reference in New Issue
Block a user