Skip to content

Commit 0fd1d62

Browse files
authored
Merge pull request #22 from sparkfun/SPI_pinchoice_micromod
SPI pin-choice for micromod machine learning
2 parents 4b398e8 + 743ea61 commit 0fd1d62

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

examples/SPI/Example_01_SPI_RotationVector/Example_01_SPI_RotationVector.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ BNO08x myIMU;
6363
#define BNO08X_INT A4
6464
#define BNO08X_RST A5
6565

66+
// If using the MicroMod Machine Learning Carrier Board, use these pins:
67+
// for more info see https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library/issues/19
68+
//#define BNO08X_CS PWM0
69+
//#define BNO08X_INT D0 // Note, D0 is also the CS pin for the camera, so you'll need to change that if you're using both.
70+
// a good alternative for D0 is PWM1, (A0 and A1 are only inputs on the carrier board).
71+
//#define BNO08X_RST D1
72+
6673
void setup() {
6774
Serial.begin(115200);
6875

examples/SPI/Example_02_SPI_ResetCheck/Example_02_SPI_ResetCheck.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ BNO08x myIMU;
6161
#define BNO08X_INT A4
6262
#define BNO08X_RST A5
6363

64+
// If using the MicroMod Machine Learning Carrier Board, use these pins:
65+
// for more info see https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library/issues/19
66+
//#define BNO08X_CS PWM0
67+
//#define BNO08X_INT D0 // Note, D0 is also the CS pin for the camera, so you'll need to change that if you're using both.
68+
// a good alternative for D0 is PWM1, (A0 and A1 are only inputs on the carrier board).
69+
//#define BNO08X_RST D1
70+
6471
int cyclecount = 0;
6572

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

examples/SPI/Example_03_SPI_Sleep/Example_03_SPI_Sleep.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ BNO08x myIMU;
5858
#define BNO08X_INT A4
5959
#define BNO08X_RST A5
6060

61+
// If using the MicroMod Machine Learning Carrier Board, use these pins:
62+
// for more info see https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library/issues/19
63+
//#define BNO08X_CS PWM0
64+
//#define BNO08X_INT D0 // Note, D0 is also the CS pin for the camera, so you'll need to change that if you're using both.
65+
// a good alternative for D0 is PWM1, (A0 and A1 are only inputs on the carrier board).
66+
//#define BNO08X_RST D1
67+
6168
unsigned long lastMillis = 0; // Keep track of time
6269
bool lastPowerState = true; // Toggle between "On" and "Sleep"
6370

0 commit comments

Comments
 (0)