LynnL4 5 жил өмнө
parent
commit
89cd4df33e

+ 1 - 1
examples/LIS3DHTR_SPI/LIS3DHTR_SPI.ino

@@ -8,7 +8,7 @@ void setup()
 {
   Serial.begin(115200);
   while (!Serial);
-  LIS.begin(10); //SPI SS/CS
+  LIS.begin(SPI,10); //SPI SS/CS
   LIS.openTemp();//If ADC3 is used, the temperature detection needs to be turned off.
   //  LIS.closeTemp();//default
   delay(100);

+ 1 - 1
examples/LIS3DHTR_SPI_ADC/LIS3DHTR_SPI_ADC.ino

@@ -6,7 +6,7 @@ void setup()
 {
   Serial.begin(115200);
   while (!Serial);
-  LIS.begin(10); //SPI SS/CS
+  LIS.begin(SPI, 10); //SPI SS/CS
   delay(100);
   //  LIS.setFullScaleRange(LIS3DHTR_RANGE_2G);
   //  LIS.setFullScaleRange(LIS3DHTR_RANGE_4G);

+ 1 - 1
examples/LIS3DHTR_SPI_AcceleratorReadings/LIS3DHTR_SPI_AcceleratorReadings.ino

@@ -6,7 +6,7 @@ void setup()
 {
   Serial.begin(115200);
   while (!Serial);
-  LIS.begin(10); //SPI SS/CS
+  LIS.begin(SPI, 10); //SPI SS/CS
   delay(100);
   //  LIS.setFullScaleRange(LIS3DHTR_RANGE_2G);
   //  LIS.setFullScaleRange(LIS3DHTR_RANGE_4G);

+ 1 - 1
examples/LIS3DHTR_SPI_Temperature/LIS3DHTR_SPI_Temperature.ino

@@ -7,7 +7,7 @@ void setup()
 {
   Serial.begin(115200);
   while (!Serial);
-  LIS.begin(10); //SPI SS/CS
+  LIS.begin(SPI, 10); //SPI SS/CS
   LIS.openTemp();////If ADC3 is used, the temperature detection needs to be turned off.
   //  LIS.closeTemp();//default
   delay(100);