Browse Source

Trigorilla Pro: Allow for swapped Z-stops

Scott Lahteine 3 years ago
parent
commit
09de17fb59
1 changed files with 14 additions and 2 deletions
  1. 14
    2
      Marlin/src/pins/stm32f1/pins_TRIGORILLA_PRO.h

+ 14
- 2
Marlin/src/pins/stm32f1/pins_TRIGORILLA_PRO.h View File

@@ -40,6 +40,8 @@
40 40
 
41 41
 #define DISABLE_JTAG
42 42
 
43
+//#define SWAPPED_Z_PLUGS
44
+
43 45
 //
44 46
 // EEPROM
45 47
 //
@@ -59,10 +61,18 @@
59 61
 #define X_STOP_PIN                          PG10
60 62
 #define Y_STOP_PIN                          PA12
61 63
 #ifndef Z_MIN_PIN
62
-  #define Z_MIN_PIN                         PA14
64
+  #ifdef SWAPPED_Z_PLUGS
65
+    #define Z_MIN_PIN                       PA14
66
+  #else
67
+    #define Z_MIN_PIN                       PA13
68
+  #endif
63 69
 #endif
64 70
 #ifndef Z_MAX_PIN
65
-  #define Z_MAX_PIN                         PA13
71
+  #ifdef SWAPPED_Z_PLUGS
72
+    #define Z_MAX_PIN                       PA13
73
+  #else
74
+    #define Z_MAX_PIN                       PA14
75
+  #endif
66 76
 #endif
67 77
 
68 78
 //
@@ -185,3 +195,5 @@
185 195
   #define SDSS                              PD2
186 196
   #define SD_DETECT_PIN                     -1
187 197
 #endif
198
+
199
+#undef SWAPPED_Z_PLUGS

Loading…
Cancel
Save