Skip to content

Commit 2c5f7e8

Browse files
committed
Changing INT and RST pins to A4/A5
-Changing the pins used int he example. A4/A5 are available on both the ESP32 IoT Redboard and the SAMD51 Thing Plus. This allows the same example sketch to work with both products (and others that have A4/A5, which is pretty common).
1 parent 7985421 commit 2c5f7e8

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

examples/Example_01_RotationVector/Example_01_RotationVector.ino

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@
2525
https://github.com/adafruit/Adafruit_BusIO
2626
2727
Hardware Connections:
28-
Plug the sensor into IoT RedBoard via QWIIC cable.
28+
IoT RedBoard --> BNO08x
29+
QWIIC --> QWIIC
30+
A4 --> INT
31+
A5 --> RST
32+
33+
BNO08x "mode" jumpers set for I2C (default):
34+
PSO: OPEN
35+
PS1: OPEN
36+
2937
Serial.print it out at 115200 baud to serial monitor.
3038
3139
Feel like supporting our work? Buy a board from SparkFun!
@@ -37,14 +45,14 @@
3745
#include "SparkFun_BNO08x_Arduino_Library.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_BNO08x
3846
BNO08x myIMU;
3947

40-
// For reliable interaction with the SHTP bus, we need
41-
// to use hardware reset control, and monitor the H_INT pin
48+
// For the most reliable interaction with the SHTP bus, we need
49+
// to use hardware reset control, and to monitor the H_INT pin.
4250
// The H_INT pin will go low when its okay to talk on the SHTP bus.
4351
// Note, these can be other GPIO if you like.
44-
// Do not define (or set to -1) to not user these features.
45-
#define BNO08X_INT 4
52+
// Define as -1 to disable these features.
53+
#define BNO08X_INT A4
4654
//#define BNO08X_INT -1
47-
#define BNO08X_RST 22
55+
#define BNO08X_RST A5
4856
//#define BNO08X_RST -1
4957

5058
#define BNO08X_ADDR 0x4B // SparkFun BNO08x Breakout (Qwiic) defaults to 0x4B

0 commit comments

Comments
 (0)