Read multiple ultrasonic sensor values without wait.
Return eight ultrasonic sensor distance values. The port must be configured as a Lowspeed port before using this function. Since this function does not include a built-in 15 millisecond wait it will be necessary to write your code so that repeated calls do not occur more frequently than once every 15 milliseconds.
|port||The port to which the ultrasonic sensor is attached. See the Input port constants group. You may use a constant or a variable. |
|values||An array of bytes that will contain the 8 distance values read from the ultrasonic sensor. |
- A status code indicating whether the read completed successfully or not. See CommLSReadType for possible result values.