Revision e5a77cdb

View differences:

examples/bunny/bunny.ino
30 30
/* Set the delay between fresh samples */
31 31
#define BNO055_SAMPLERATE_DELAY_MS (100)
32 32

  
33
Adafruit_BNO055 bno = Adafruit_BNO055(55);
33
// Check I2C device address and correct line below (by default address is 0x29 or 0x28)
34
//                                   id, address
35
Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
34 36

  
35 37
/**************************************************************************/
36 38
/*
examples/position/position.ino
13 13
double ACCEL_POS_TRANSITION = 0.5 * ACCEL_VEL_TRANSITION * ACCEL_VEL_TRANSITION;
14 14
double DEG_2_RAD = 0.01745329251; //trig functions require radians, BNO055 outputs degrees
15 15

  
16
Adafruit_BNO055 bno = Adafruit_BNO055(55);
16
// Check I2C device address and correct line below (by default address is 0x29 or 0x28)
17
//                                   id, address
18
Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
17 19

  
18 20
void setup(void)
19 21
{
examples/rawdata/rawdata.ino
20 20
/* Set the delay between fresh samples */
21 21
#define BNO055_SAMPLERATE_DELAY_MS (100)
22 22

  
23
Adafruit_BNO055 bno = Adafruit_BNO055();
23
// Check I2C device address and correct line below (by default address is 0x29 or 0x28)
24
//                                   id, address
25
Adafruit_BNO055 bno = Adafruit_BNO055(-1, 0x28);
24 26

  
25 27
/**************************************************************************/
26 28
/*
......
29 31
/**************************************************************************/
30 32
void setup(void)
31 33
{
32
  Serial.begin(9600);
34
  Serial.begin(115200);
33 35
  Serial.println("Orientation Sensor Raw Data Test"); Serial.println("");
34 36

  
35 37
  /* Initialise the sensor */
examples/read_all_data/read_all_data.ino
30 30
/* Set the delay between fresh samples */
31 31
uint16_t BNO055_SAMPLERATE_DELAY_MS = 100;
32 32

  
33
Adafruit_BNO055 bno = Adafruit_BNO055(55);
33
// Check I2C device address and correct line below (by default address is 0x29 or 0x28)
34
//                                   id, address
35
Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
34 36

  
35 37
void setup(void)
36 38
{
examples/restore_offsets/restore_offsets.ino
33 33
/* Set the delay between fresh samples */
34 34
#define BNO055_SAMPLERATE_DELAY_MS (100)
35 35

  
36
Adafruit_BNO055 bno = Adafruit_BNO055(55);
36
// Check I2C device address and correct line below (by default address is 0x29 or 0x28)
37
//                                   id, address
38
Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
37 39

  
38 40
/**************************************************************************/
39 41
/*
examples/sensorapi/sensorapi.ino
31 31
/* Set the delay between fresh samples */
32 32
#define BNO055_SAMPLERATE_DELAY_MS (100)
33 33

  
34
Adafruit_BNO055 bno = Adafruit_BNO055(55);
34
// Check I2C device address and correct line below (by default address is 0x29 or 0x28)
35
//                                   id, address
36
Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
35 37

  
36 38
/**************************************************************************/
37 39
/*
......
118 120
/**************************************************************************/
119 121
void setup(void)
120 122
{
121
  Serial.begin(9600);
123
  Serial.begin(115200);
122 124
  Serial.println("Orientation Sensor Test"); Serial.println("");
123 125

  
124 126
  /* Initialise the sensor */

Also available in: Unified diff