Skip to content

Commit 3ac18da

Browse files
committed
Moving CS to more common GPIO pin - D5
-for SPI examples to work across more dev boards, moving CS to a more commonly found GPIO pin number. (D5).
1 parent f132b80 commit 3ac18da

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/SPI/Example_01_SPI_RotationVector/Example_01_SPI_RotationVector.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
3434
Hardware Connections:
3535
IoT RedBoard --> BNO08x
36-
D25 --> CS
36+
D5 --> CS
3737
PICO --> SI
3838
POCI --> SO
3939
SCK --> SCK
@@ -59,7 +59,7 @@ BNO08x myIMU;
5959

6060
// For SPI, we need some extra pins defined:
6161
// Note, these can be other GPIO if you like.
62-
#define BNO08X_CS 25
62+
#define BNO08X_CS 5
6363
#define BNO08X_INT A4
6464
#define BNO08X_RST A5
6565

examples/SPI/Example_02_SPI_ResetCheck/Example_02_SPI_ResetCheck.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
3434
Hardware Connections:
3535
IoT RedBoard --> BNO08x
36-
D25 --> CS
36+
D5 --> CS
3737
PICO --> SI
3838
POCI --> SO
3939
SCK --> SCK
@@ -57,7 +57,7 @@ BNO08x myIMU;
5757

5858
// For SPI, we need some extra pins defined:
5959
// Note, these can be other GPIO if you like.
60-
#define BNO08X_CS 25
60+
#define BNO08X_CS 5
6161
#define BNO08X_INT A4
6262
#define BNO08X_RST A5
6363

examples/SPI/Example_03_SPI_Sleep/Example_03_SPI_Sleep.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
3131
Hardware Connections:
3232
IoT RedBoard --> BNO08x
33-
D25 --> CS
33+
D5 --> CS
3434
PICO --> SI
3535
POCI --> SO
3636
SCK --> SCK
@@ -54,9 +54,9 @@ BNO08x myIMU;
5454

5555
// For SPI, we need some extra pins defined:
5656
// Note, these can be other GPIO if you like.
57-
#define BNO08X_CS 25
58-
#define BNO08X_INT A4
59-
#define BNO08X_RST A5
57+
#define BNO08X_CS 5
58+
#define BNO08X_INT A4
59+
#define BNO08X_RST A5
6060

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

0 commit comments

Comments
 (0)