Update examples
This commit is contained in:
parent
e1e89bc044
commit
a45c3b1784
276 changed files with 66091 additions and 48794 deletions
|
|
@ -31,7 +31,7 @@
|
|||
#include <Wire.h>
|
||||
#include <SPI.h>
|
||||
#include "SensorQMI8658.hpp"
|
||||
#include "boards.h"
|
||||
#include "LoRaBoards.h"
|
||||
|
||||
SensorQMI8658 qmi;
|
||||
|
||||
|
|
@ -45,15 +45,15 @@ void setup()
|
|||
Serial.begin(115200);
|
||||
while (!Serial);
|
||||
|
||||
initBoard();
|
||||
setupBoards();
|
||||
|
||||
pinMode(SPI_CS, OUTPUT); //sdcard pin set high
|
||||
digitalWrite(SPI_CS, HIGH);
|
||||
|
||||
// SDCard shares SPI bus with QMI8658
|
||||
// SPI has been initialized in initBoard.
|
||||
// SPI has been initialized in initBoard.
|
||||
// Only need to pass SPIhandler to the QMI class.
|
||||
if (!qmi.begin(IMU_CS, -1, -1, -1, SDSPI)) {
|
||||
if (!qmi.begin(IMU_CS, -1, -1, -1, SDCardSPI)) {
|
||||
Serial.println("Failed to find QMI8658 - check your wiring!");
|
||||
while (1) {
|
||||
delay(1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue