#define ReadSensorUS ( _port,
_value   )     __ReadSensorUS(_port, _value)

Read ultrasonic sensor value.

Return the ultrasonic sensor distance value. Since an ultrasonic sensor is an I2C digital sensor its value cannot be read using the standard Sensor(n) value. The port must be configured as a Lowspeed port before using this function.

Parameters:
_port The port to which the ultrasonic sensor is attached. See the NBC Input port constants group. You may use a constant or a variable.
_value The ultrasonic sensor distance value (0..255)

Generated by  doxygen 1.6.2