NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool SetSensorMIXG1300LScale ( byte  port,
const byte  scale 
)
inline

SetSensorMIXG1300LScale function.

Set the Microinfinity CruizCore XG1300L accelerometer scale. The accelerometer in the CruizCore XG1300L can be set to operate with a scale ranging from +/-2G, +/-4G, or +/-8G. 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 the Input port constants group.
scaleThis value must be a constant. See Microinfinity CruizCore XG1300L.
Returns
The boolean function call result.
Examples:
ex_xg1300.nxc.