#define DISTNxGP2YA02 ( _port,
_i2caddr,
_result   )     __I2CSendCmd(_port, _i2caddr, DIST_CMD_GP2YA02, _result)

Configure DIST-Nx as GP2YA02.

Configure the mindsensors DIST-Nx sensor as GP2YA02. The port must be configured as a Lowspeed port before using this function.

Parameters:
_port The sensor port. See NBC Input port constants.
_i2caddr The sensor I2C address. See sensor documentation for this value.
_result The function call result.

Generated by  doxygen 1.6.2