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