NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int DISTNxDistance ( const byte  port,
const byte  i2caddr 
)
inline

Read DISTNx distance value.

Read the mindsensors DISTNx sensor's distance value. The port must be configured as a Lowspeed port before using this function.

Parameters
portThe sensor port. See Input port constants.
i2caddrThe sensor I2C address. See sensor documentation for this value.
Returns
The distance value.
Examples:
ex_DISTNxDistance.nxc.