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
-
port | The sensor port. See Input port constants. |
i2caddr | The sensor I2C address. See sensor documentation for this value. |
x | The output x-axis acceleration. |
y | The output y-axis acceleration. |
z | The output z-axis acceleration. |
- Returns
- The function call result.
- Examples:
- ex_ReadSensorMSAccel.nxc.