global I2C and SPI pins and mpu6050 interrupt pin default to -1

As can otherwise cause conflicts, must be set in platformio explicitly to the right values

Set in platform io for _max configs
This commit is contained in:
Ewoud
2023-01-11 17:32:19 +01:00
parent 037d7ce456
commit 9944f8dc72
6 changed files with 197 additions and 205 deletions

View File

@@ -116,7 +116,7 @@ class MPU6050Driver : public Usermod {
float ypr[3] = {0.0f}; // [yaw, pitch, roll] yaw/pitch/roll container and gravity vector
#if !defined(ARDUINO_ARCH_ESP32) || !defined(MPU6050_INT_GPIO)
static const int INTERRUPT_PIN = 15; // use pin 15 on ESP8266
static const int INTERRUPT_PIN = -1; // WLEDMM: not use pin 15 (on ESP8266) as can and will cause conflict with other pins
#else
static const int INTERRUPT_PIN = MPU6050_INT_GPIO; // WLEDMM
#endif