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

Read mindsensors acceleration values.

Read X, Y, and Z axis acceleration values from the mindsensors Accelerometer 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 acceleration.
yThe output y-axis acceleration.
zThe output z-axis acceleration.
Returns
The function call result.
Examples:
ex_ReadSensorMSAccel.nxc.