From 1c9b10a674acf809329786bcab49bd968809e63e Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sat, 24 Feb 2024 15:28:41 +0300 Subject: [PATCH] Use default recommended chip-select pin (GPIO5) for SPI Update link to the schematics #3 to the most recent version --- README.md | 2 +- flix/imu.ino | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ad11385..f72552d 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Simulation in Gazebo using a plugin that runs original Arduino code is implement Flix schematics -You can also check a user contributed [variant of complete circuit diagram](https://github.com/okalachev/flix/issues/3#issue-2066079898) of the drone. +You can also check a user contributed [variant of complete circuit diagram](https://miro.com/app/board/uXjVN-dTjoo=/) of the drone. *\* — SBUS inverter is not needed as ESP32 supports [software pin inversion](https://github.com/bolderflight/sbus#inverted-serial).* diff --git a/flix/imu.ino b/flix/imu.ino index acbade5..9d0107b 100644 --- a/flix/imu.ino +++ b/flix/imu.ino @@ -6,10 +6,9 @@ #include #include -#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");