Arduino Function: NaxisMotion.initSensor

Description

Function with the bare minimum initialization

Syntax

void initSensor(void)

Examples

//Contains the bridge code between the API and the Arduino Environment
#include "NAxisMotion.h"
#include <Wire.h>

//Object that for the sensor
NAxisMotion mySensor;

void setup() { //This code is executed once
//Initialize I2C communication to the let the library communicate with the sensor.
I2C.begin();

//The I2C Address can be changed here inside this function in the library
mySensor.initSensor();

//Can be configured to other operation modes as desired
mySensor.setOperationMode(OPERATION_MODE_NDOF);
}

void loop() { //This code is looped forever
// blank
}


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