A novice question. I’m getting the following error when compiling the LSM9DS1_Basic_SPI example for the Redbord Artemis ATP. Can anyone tell me what the problem is. Thanks.
Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: “RedBoard Artemis ATP, 921600, SparkFun Variable Loader (Recommended)”
C:\Users\Stephen\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_Arduino_Library-master\src\SparkFunLSM9DS1.cpp: In member function ‘void LSM9DS1::initSPI()’:
C:\Users\Stephen\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_Arduino_Library-master\src\SparkFunLSM9DS1.cpp:1141:6: error: ‘class arduino::MbedSPI’ has no member named ‘setClockDivider’
SPI.setClockDivider(SPI_CLOCK_DIV2);
^~~~~~~~~~~~~~~
C:\Users\Stephen\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_Arduino_Library-master\src\SparkFunLSM9DS1.cpp:1141:22: error: ‘SPI_CLOCK_DIV2’ was not declared in this scope
SPI.setClockDivider(SPI_CLOCK_DIV2);
^~~~~~~~~~~~~~
C:\Users\Stephen\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_Arduino_Library-master\src\SparkFunLSM9DS1.cpp:1141:22: note: suggested alternative: ‘SPI_CLK’
SPI.setClockDivider(SPI_CLOCK_DIV2);
^~~~~~~~~~~~~~
SPI_CLK
C:\Users\Stephen\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_Arduino_Library-master\src\SparkFunLSM9DS1.cpp:1143:6: error: ‘class arduino::MbedSPI’ has no member named ‘setBitOrder’
SPI.setBitOrder(MSBFIRST);
^~~~~~~~~~~
C:\Users\Stephen\OneDrive\Documents\Arduino\libraries\SparkFun_LSM9DS1_Arduino_Library-master\src\SparkFunLSM9DS1.cpp:1146:6: error: ‘class arduino::MbedSPI’ has no member named ‘setDataMode’
SPI.setDataMode(SPI_MODE0);
^~~~~~~~~~~
exit status 1
Error compiling for board RedBoard Artemis ATP.