Browse Source

Generic stop pins (presume one endstop per axis end)

Scott Lahteine 6 years ago
parent
commit
0f79fb9821
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      Marlin/src/pins/pins.h

+ 12
- 0
Marlin/src/pins/pins.h View File

820
     #define X_MIN_PIN -1
820
     #define X_MIN_PIN -1
821
     #define X_MAX_PIN X_STOP_PIN
821
     #define X_MAX_PIN X_STOP_PIN
822
   #endif
822
   #endif
823
+#elif X_HOME_DIR < 0
824
+  #define X_STOP_PIN X_MIN_PIN
825
+#else
826
+  #define X_STOP_PIN X_MAX_PIN
823
 #endif
827
 #endif
824
 
828
 
825
 #ifdef Y_STOP_PIN
829
 #ifdef Y_STOP_PIN
830
     #define Y_MIN_PIN -1
834
     #define Y_MIN_PIN -1
831
     #define Y_MAX_PIN Y_STOP_PIN
835
     #define Y_MAX_PIN Y_STOP_PIN
832
   #endif
836
   #endif
837
+#elif Y_HOME_DIR < 0
838
+  #define Y_STOP_PIN Y_MIN_PIN
839
+#else
840
+  #define Y_STOP_PIN Y_MAX_PIN
833
 #endif
841
 #endif
834
 
842
 
835
 #ifdef Z_STOP_PIN
843
 #ifdef Z_STOP_PIN
840
     #define Z_MIN_PIN -1
848
     #define Z_MIN_PIN -1
841
     #define Z_MAX_PIN Z_STOP_PIN
849
     #define Z_MAX_PIN Z_STOP_PIN
842
   #endif
850
   #endif
851
+#elif Z_HOME_DIR < 0
852
+  #define Z_STOP_PIN Z_MIN_PIN
853
+#else
854
+  #define Z_STOP_PIN Z_MAX_PIN
843
 #endif
855
 #endif
844
 
856
 
845
 //
857
 //

Loading…
Cancel
Save