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

Read NXTLineLeader result.

Read the mindsensors NXTLineLeader device's result value. This is a single byte showing the 8 sensor's readings. Each bit corresponding to the sensor where the line is seen is set to 1, otherwise it is set to 0. When all 8 sensors are over a black surface the result will be 255 (b11111111). The port must be configured as a Lowspeed port before using this function.

Parameters
portThe sensor port. See NBC Input port constants.
i2caddrThe sensor I2C address. See sensor documentation for this value.
Returns
The NXTLineLeader result value.
Examples:
ex_NXTLineLeader.nxc.