Explorar el Código

(SKR 1.3) Assign DIAG pins for homing dir (#15972)

pfillion42 hace 5 años
padre
commit
4a5dee6356

+ 0
- 10
Marlin/src/pins/lpc1768/pins_BTT_SKR.h Ver fichero

@@ -29,16 +29,6 @@
29 29
 //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
30 30
 
31 31
 //
32
-// Limit Switches
33
-//
34
-#define X_MIN_PIN          P1_29
35
-#define X_MAX_PIN          P1_28
36
-#define Y_MIN_PIN          P1_27
37
-#define Y_MAX_PIN          P1_26
38
-#define Z_MIN_PIN          P1_25
39
-#define Z_MAX_PIN          P1_24
40
-
41
-//
42 32
 // Steppers
43 33
 //
44 34
 

+ 11
- 0
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h Ver fichero

@@ -24,6 +24,17 @@
24 24
 #define BOARD_INFO_NAME "BIGTREE SKR 1.1"
25 25
 
26 26
 //
27
+// Limit Switches
28
+//
29
+
30
+#define X_MIN_PIN          P1_29
31
+#define X_MAX_PIN          P1_28
32
+#define Y_MIN_PIN          P1_27
33
+#define Y_MAX_PIN          P1_26
34
+#define Z_MIN_PIN          P1_25
35
+#define Z_MAX_PIN          P1_24
36
+
37
+//
27 38
 // Steppers
28 39
 //
29 40
 #define X_STEP_PIN         P0_04

+ 30
- 0
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h Ver fichero

@@ -23,6 +23,36 @@
23 23
 
24 24
 #define BOARD_INFO_NAME "BIGTREE SKR 1.3"
25 25
 
26
+/**
27
+ * Limit Switches
28
+ *
29
+ * For Stallguard homing to max swap the min / max pins so
30
+ * the MAX physical connectors can be used for other things.
31
+ */
32
+#if X_HOME_DIR == -1 || !X_STALL_SENSITIVITY
33
+  #define X_MIN_PIN          P1_29   // X_MIN
34
+  #define X_MAX_PIN          P1_28   // X_MAX
35
+#else
36
+  #define X_MIN_PIN          P1_28   // X_MAX
37
+  #define X_MAX_PIN          P1_29   // X_MIN
38
+#endif
39
+
40
+#if Y_HOME_DIR == -1 || !Y_STALL_SENSITIVITY
41
+  #define Y_MIN_PIN          P1_27   // Y_MIN
42
+  #define Y_MAX_PIN          P1_26   // Y_MAX
43
+#else
44
+  #define Y_MIN_PIN          P1_26   // Y_MAX
45
+  #define Y_MAX_PIN          P1_27   // Y_MIN
46
+#endif
47
+
48
+#if Z_HOME_DIR == -1 || !Z_STALL_SENSITIVITY
49
+  #define Z_MIN_PIN          P1_25   // Z_MIN
50
+  #define Z_MAX_PIN          P1_24   // Z_MAX
51
+#else
52
+  #define Z_MIN_PIN          P1_24   // Z_MAX
53
+  #define Z_MAX_PIN          P1_25   // Z_MIN
54
+#endif
55
+
26 56
 //
27 57
 // Servos
28 58
 //

Loading…
Cancelar
Guardar