Bladeren bron

Fix SKR Pro / GTR i2c pins

Fixes #17297

Co-Authored-By: NAPCAL <napcal@users.noreply.github.com>
Scott Lahteine 4 jaren geleden
bovenliggende
commit
5d1498f2cb
1 gewijzigde bestanden met toevoegingen van 7 en 2 verwijderingen
  1. 7
    2
      buildroot/share/PlatformIO/variants/BIGTREE_SKR_PRO_1v1/variant.h

+ 7
- 2
buildroot/share/PlatformIO/variants/BIGTREE_SKR_PRO_1v1/variant.h Bestand weergeven

@@ -245,8 +245,13 @@ extern "C" {
245 245
 #define PIN_SPI_SS              PB12
246 246
 
247 247
 // I2C Definitions
248
-#define PIN_WIRE_SDA            PB7
249
-#define PIN_WIRE_SCL            PB6
248
+#if STM32F4X_PIN_NUM >= 176
249
+  #define PIN_WIRE_SDA          PH5
250
+  #define PIN_WIRE_SCL          PH4
251
+#else
252
+  #define PIN_WIRE_SDA          PB7
253
+  #define PIN_WIRE_SCL          PB6
254
+#endif
250 255
 
251 256
 // Timer Definitions
252 257
 //Do not use timer used by PWM pins when possible. See PinMap_PWM in PeripheralPins.c

Laden…
Annuleren
Opslaan