Procházet zdrojové kódy

Max endstop pins disabled by configuration

There’s no need to ask users to uncomment Max Endstop pins when they
have them. These will be set to -1 later if the endstop option is
disabled.
Scott Lahteine před 10 roky
rodič
revize
82474fef8a

+ 2
- 4
Marlin/pins_3DRAG.h Zobrazit soubor

@@ -4,10 +4,8 @@
4 4
 
5 5
 #include "pins_RAMPS_13.h"
6 6
 
7
-#define X_MAX_PIN           -1   //2 //Max endstops default to disabled "-1", set to commented value to enable.
8
-
9
-#define Y_MAX_PIN          -1   //15
10
-
7
+#define X_MAX_PIN          2
8
+#define Y_MAX_PIN          15
11 9
 #define Z_MAX_PIN          -1
12 10
 
13 11
 #define SDSS               25//53

+ 3
- 3
Marlin/pins_ELEFU_3.h Zobrazit soubor

@@ -10,19 +10,19 @@
10 10
 #define X_DIR_PIN          13
11 11
 #define X_ENABLE_PIN       48
12 12
 #define X_MIN_PIN          35
13
-#define X_MAX_PIN          -1 //34
13
+#define X_MAX_PIN          34
14 14
 
15 15
 #define Y_STEP_PIN         11
16 16
 #define Y_DIR_PIN          9
17 17
 #define Y_ENABLE_PIN       12
18 18
 #define Y_MIN_PIN          33
19
-#define Y_MAX_PIN          -1 //32
19
+#define Y_MAX_PIN          32
20 20
 
21 21
 #define Z_STEP_PIN         7
22 22
 #define Z_DIR_PIN          6
23 23
 #define Z_ENABLE_PIN       8
24 24
 #define Z_MIN_PIN          31
25
-#define Z_MAX_PIN          -1 //30
25
+#define Z_MAX_PIN          30
26 26
 
27 27
 #define E2_STEP_PIN        43
28 28
 #define E2_DIR_PIN         47

+ 2
- 2
Marlin/pins_LEAPFROG.h Zobrazit soubor

@@ -10,13 +10,13 @@
10 10
 #define X_DIR_PIN          63
11 11
 #define X_ENABLE_PIN       29
12 12
 #define X_MIN_PIN          47
13
-#define X_MAX_PIN          -1   //2 //Max endstops default to disabled "-1", set to commented value to enable.
13
+#define X_MAX_PIN          2 //Max endstops default to disabled "-1", set to commented value to enable.
14 14
 
15 15
 #define Y_STEP_PIN         14 // A6
16 16
 #define Y_DIR_PIN          15 // A0
17 17
 #define Y_ENABLE_PIN       39
18 18
 #define Y_MIN_PIN          48
19
-#define Y_MAX_PIN          -1   //15
19
+#define Y_MAX_PIN          15
20 20
 
21 21
 #define Z_STEP_PIN         31 // A2
22 22
 #define Z_DIR_PIN          32 // A6

+ 2
- 2
Marlin/pins_MEGATRONICS_1.h Zobrazit soubor

@@ -12,13 +12,13 @@
12 12
 #define X_DIR_PIN 47
13 13
 #define X_ENABLE_PIN 49
14 14
 #define X_MIN_PIN 5
15
-#define X_MAX_PIN -1 // 2 // Max endstops default to disabled "-1", set to commented value to enable.
15
+#define X_MAX_PIN 2
16 16
 
17 17
 #define Y_STEP_PIN 39 // A6
18 18
 #define Y_DIR_PIN 40 // A0
19 19
 #define Y_ENABLE_PIN 38
20 20
 #define Y_MIN_PIN 2
21
-#define Y_MAX_PIN -1 // 15
21
+#define Y_MAX_PIN 15
22 22
 
23 23
 #define Z_STEP_PIN 42 // A2
24 24
 #define Z_DIR_PIN 43 // A6

+ 2
- 2
Marlin/pins_MEGATRONICS_2.h Zobrazit soubor

@@ -12,13 +12,13 @@
12 12
 #define X_DIR_PIN 27
13 13
 #define X_ENABLE_PIN 25
14 14
 #define X_MIN_PIN 37
15
-#define X_MAX_PIN 40 //2 //Max endstops default to disabled "-1", set to commented value to enable.
15
+#define X_MAX_PIN 40
16 16
 
17 17
 #define Y_STEP_PIN 4 // A6
18 18
 #define Y_DIR_PIN 54 // A0
19 19
 #define Y_ENABLE_PIN 5
20 20
 #define Y_MIN_PIN 41
21
-#define Y_MAX_PIN 38 //15
21
+#define Y_MAX_PIN 38
22 22
 
23 23
 #define Z_STEP_PIN 56 // A2
24 24
 #define Z_DIR_PIN 60 // A6

+ 6
- 6
Marlin/pins_RAMPS_OLD.h Zobrazit soubor

@@ -13,23 +13,23 @@
13 13
 #define X_DIR_PIN          28
14 14
 #define X_ENABLE_PIN       24
15 15
 #define X_MIN_PIN           3
16
-#define X_MAX_PIN          -1    //2
16
+#define X_MAX_PIN           2
17 17
 
18 18
 #define Y_STEP_PIN         38
19 19
 #define Y_DIR_PIN          40
20 20
 #define Y_ENABLE_PIN       36
21 21
 #define Y_MIN_PIN          16
22
-#define Y_MAX_PIN          -1    //17
22
+#define Y_MAX_PIN          17
23 23
 
24 24
 #define Z_STEP_PIN         44
25 25
 #define Z_DIR_PIN          46
26 26
 #define Z_ENABLE_PIN       42
27 27
 #define Z_MIN_PIN          18
28
-#define Z_MAX_PIN          -1    //19
28
+#define Z_MAX_PIN          19
29 29
 
30
-#define E0_STEP_PIN         32
31
-#define E0_DIR_PIN          34
32
-#define E0_ENABLE_PIN       30
30
+#define E0_STEP_PIN        32
31
+#define E0_DIR_PIN         34
32
+#define E0_ENABLE_PIN      30
33 33
 
34 34
 #define SDPOWER            48
35 35
 #define SDSS               53

Loading…
Zrušit
Uložit