Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ BNO08x myIMU;
#define BNO08X_INT A4
#define BNO08X_RST A5

// If using the MicroMod Machine Learning Carrier Board, use these pins:
// for more info see https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library/issues/19
//#define BNO08X_CS PWM0
//#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.
// a good alternative for D0 is PWM1, (A0 and A1 are only inputs on the carrier board).
//#define BNO08X_RST D1

void setup() {
Serial.begin(115200);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ BNO08x myIMU;
#define BNO08X_INT A4
#define BNO08X_RST A5

// If using the MicroMod Machine Learning Carrier Board, use these pins:
// for more info see https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library/issues/19
//#define BNO08X_CS PWM0
//#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.
// a good alternative for D0 is PWM1, (A0 and A1 are only inputs on the carrier board).
//#define BNO08X_RST D1

int cyclecount = 0;

#define BNO08X_ADDR 0x4B // SparkFun BNO08x Breakout (Qwiic) defaults to 0x4B
Expand Down
7 changes: 7 additions & 0 deletions examples/SPI/Example_03_SPI_Sleep/Example_03_SPI_Sleep.ino
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ BNO08x myIMU;
#define BNO08X_INT A4
#define BNO08X_RST A5

// If using the MicroMod Machine Learning Carrier Board, use these pins:
// for more info see https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library/issues/19
//#define BNO08X_CS PWM0
//#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.
// a good alternative for D0 is PWM1, (A0 and A1 are only inputs on the carrier board).
//#define BNO08X_RST D1

unsigned long lastMillis = 0; // Keep track of time
bool lastPowerState = true; // Toggle between "On" and "Sleep"

Expand Down