Kaynağa Gözat

SKR Pro V1.1 StallGuard pins (#17550)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Alexander Amelkin 5 yıl önce
ebeveyn
işleme
cae2b7bf4e

+ 6
- 6
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h Dosyayı Görüntüle

@@ -31,18 +31,18 @@
31 31
   //#define SDCARD_EEPROM_EMULATION
32 32
 #endif
33 33
 
34
-/**
35
- * Trinamic Stallguard pins
36
- */
34
+//
35
+// Trinamic Stallguard pins
36
+//
37 37
 #define X_DIAG_PIN                         P1_29  // X-
38 38
 #define Y_DIAG_PIN                         P1_27  // Y-
39 39
 #define Z_DIAG_PIN                         P1_25  // Z-
40 40
 #define E0_DIAG_PIN                        P1_28  // X+
41 41
 #define E1_DIAG_PIN                        P1_26  // Y+
42 42
 
43
-/**
44
- * Limit Switches
45
- */
43
+//
44
+// Limit Switches
45
+//
46 46
 #if X_STALL_SENSITIVITY
47 47
   #define X_STOP_PIN                  X_DIAG_PIN
48 48
   #if X_HOME_DIR < 0

+ 43
- 7
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h Dosyayı Görüntüle

@@ -39,17 +39,53 @@
39 39
 #define SERVO0_PIN                          PA1
40 40
 
41 41
 //
42
+// Trinamic Stallguard pins
43
+//
44
+#define X_DIAG_PIN                          PB10  // X-
45
+#define Y_DIAG_PIN                          PE12  // Y-
46
+#define Z_DIAG_PIN                          PG8   // Z-
47
+
48
+//
42 49
 // Limit Switches
43 50
 //
44
-#define X_MIN_PIN                           PB10
45
-#define X_MAX_PIN                           PE15
46
-#define Y_MIN_PIN                           PE12
47
-#define Y_MAX_PIN                           PE10
48
-#define Z_MIN_PIN                           PG8
49
-#define Z_MAX_PIN                           PG5
51
+#if X_STALL_SENSITIVITY
52
+  #define X_STOP_PIN                  X_DIAG_PIN
53
+  #if X_HOME_DIR < 0
54
+    #define X_MAX_PIN                       PE15  // E0
55
+  #else
56
+    #define X_MIN_PIN                       PE15  // E0
57
+  #endif
58
+#else
59
+  #define X_MIN_PIN                         PB10  // X-
60
+  #define X_MAX_PIN                         PE15  // E0
61
+#endif
62
+
63
+#if Y_STALL_SENSITIVITY
64
+  #define Y_STOP_PIN                  Y_DIAG_PIN
65
+  #if Y_HOME_DIR < 0
66
+    #define Y_MAX_PIN                       PE10  // E1
67
+  #else
68
+    #define Y_MIN_PIN                       PE10  // E1
69
+  #endif
70
+#else
71
+  #define Y_MIN_PIN                         PE12  // Y-
72
+  #define Y_MAX_PIN                         PE10  // E1
73
+#endif
74
+
75
+#if Z_STALL_SENSITIVITY
76
+  #define Z_STOP_PIN                  Z_DIAG_PIN
77
+  #if Z_HOME_DIR < 0
78
+    #define Z_MAX_PIN                       PG5   // E2
79
+  #else
80
+    #define Z_MIN_PIN                       PG5   // E2
81
+  #endif
82
+#else
83
+  #define Z_MIN_PIN                         PG8   // Z-
84
+  #define Z_MAX_PIN                         PG5   // E2
85
+#endif
50 86
 
51 87
 //
52
-// Z Probe must be this pins
88
+// Z Probe must be this pin
53 89
 //
54 90
 #ifndef Z_MIN_PROBE_PIN
55 91
   #define Z_MIN_PROBE_PIN                   PA2

Loading…
İptal
Kaydet