We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb3be21 commit cb2e346Copy full SHA for cb2e346
src/ICM_20948.h
@@ -95,6 +95,11 @@ class ICM_20948 {
95
96
97
// I2C
98
+
99
+// Forward declarations of TwoWire and Wire for board/variant combinations that don't have a default 'SPI'
100
+class TwoWire;
101
+extern TwoWire Wire;
102
103
class ICM_20948_I2C : public ICM_20948 {
104
private:
105
protected:
@@ -124,6 +129,10 @@ class ICM_20948_I2C : public ICM_20948 {
124
129
#define ICM_20948_SPI_DEFAULT_ORDER MSBFIRST
125
130
#define ICM_20948_SPI_DEFAULT_MODE SPI_MODE3
126
131
132
+// Forward declarations of SPIClass and SPI for board/variant combinations that don't have a default 'SPI'
133
+class SPIClass;
134
+extern SPIClass SPI;
135
127
136
class ICM_20948_SPI : public ICM_20948 {
128
137
138
0 commit comments