Use default recommended chip-select pin (GPIO5) for SPI

Update link to the schematics #3 to the most recent version
This commit is contained in:
Oleg Kalachev
2024-02-24 15:28:41 +03:00
parent ab2f99ab59
commit 1c9b10a674
2 changed files with 2 additions and 3 deletions

View File

@@ -6,10 +6,9 @@
#include <SPI.h>
#include <MPU9250.h>
#define IMU_CS_PIN 4 // chip-select pin for IMU SPI connection
#define LOAD_GYRO_CAL false
MPU9250 IMU(SPI, IMU_CS_PIN);
MPU9250 IMU(SPI, SS);
void setupIMU() {
Serial.println("Setup IMU, stand still");