NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool ReadSensorMSTilt ( const byte &  port,
const byte &  i2caddr,
byte &  x,
byte &  y,
byte &  z 
)
inline

Read mindsensors tilt values.

Read X, Y, and Z axis tilt values from the mindsensors tilt sensor. Returns a boolean value indicating whether or not the operation completed successfully. 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.
xThe output x-axis tilt.
yThe output y-axis tilt.
zThe output z-axis tilt.
Returns
The function call result.
Examples:
ex_ReadSensorMSTilt.nxc.