Skip to content

Commit 36c51ba

Browse files
committed
Changed I2C class to Wire
1 parent 4443e77 commit 36c51ba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/Accelerometer/Accelerometer.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ bool updateSensorData = true; //Flag to update the sensor data. Default
5555
void setup() //This code is executed once
5656
{
5757
//Peripheral Initialization
58-
Serial.begin(115200); //Initialize the Serial Port to view information on the Serial Monitor
59-
I2C.begin(); //Initialize I2C communication to the let the library communicate with the sensor.
58+
Serial.begin(9600); //Initialize the Serial Port to view information on the Serial Monitor
59+
Wire.begin(); //Initialize I2C communication to the let the library communicate with the sensor.
6060
//Sensor Initialization
6161
mySensor.initSensor(); //The I2C Address can be changed here inside this function in the library
6262
mySensor.setOperationMode(OPERATION_MODE_NDOF); //Can be configured to other operation modes as desired

examples/BareMinimum/BareMinimum.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ NineAxesMotion mySensor; //Object that for the sensor
5252
void setup() //This code is executed once
5353
{
5454
//Peripheral Initialization
55-
I2C.begin(); //Initialize I2C communication to the let the library communicate with the sensor.
55+
Wire.begin(); //Initialize I2C communication to the let the library communicate with the sensor.
5656
//Sensor Initialization
5757
mySensor.initSensor(); //The I2C Address can be changed here inside this function in the library
5858
mySensor.setOperationMode(OPERATION_MODE_NDOF); //Can be configured to other operation modes as desired

examples/Euler/Euler.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const int streamPeriod = 20; //To stream at 50Hz without using addition
5454
void setup() //This code is executed once
5555
{
5656
//Peripheral Initialization
57-
Serial.begin(115200); //Initialize the Serial Port to view information on the Serial Monitor
58-
I2C.begin(); //Initialize I2C communication to the let the library communicate with the sensor.
57+
Serial.begin(9600); //Initialize the Serial Port to view information on the Serial Monitor
58+
Wire.begin(); //Initialize I2C communication to the let the library communicate with the sensor.
5959
//Sensor Initialization
6060
mySensor.initSensor(); //The I2C Address can be changed here inside this function in the library
6161
mySensor.setOperationMode(OPERATION_MODE_NDOF); //Can be configured to other operation modes as desired

0 commit comments

Comments
 (0)