Arduino Function: NaxisMotion.setUpdateMode

Description

This function is used to change the mode of updating the local data

Syntax

void setUpdateMode(bool updateMode)

Examples

void setup() { //This code is executed once
//Peripheral Initialization
//Initialize the Serial Port to view information on the Serial Monitor
Serial.begin(115200);

//Initialize I2C communication to the let the library communicate with the sensor.
//The I2C Address can be changed here inside this function in the library
I2C.begin();

/* Sensor Initialization */
//Can be configured to other operation modes as desired
mySensor.initSensor();

//The default is AUTO. Changing to manual requires calling the relevant update functions prior to calling the read functions
mySensor.setOperationMode(OPERATION_MODE_NDOF);

//Setting to MANUAL requires lesser reads to the sensor
mySensor.setUpdateMode(MANUAL);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc