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

Read HiTechnic acceleration values.

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