Browse Source

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 9 years ago
parent
commit
82474fef8a

+ 2
- 4
Marlin/pins_3DRAG.h View File

4
 
4
 
5
 #include "pins_RAMPS_13.h"
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
 #define Z_MAX_PIN          -1
9
 #define Z_MAX_PIN          -1
12
 
10
 
13
 #define SDSS               25//53
11
 #define SDSS               25//53

+ 3
- 3
Marlin/pins_ELEFU_3.h View File

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

+ 2
- 2
Marlin/pins_LEAPFROG.h View File

10
 #define X_DIR_PIN          63
10
 #define X_DIR_PIN          63
11
 #define X_ENABLE_PIN       29
11
 #define X_ENABLE_PIN       29
12
 #define X_MIN_PIN          47
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
 #define Y_STEP_PIN         14 // A6
15
 #define Y_STEP_PIN         14 // A6
16
 #define Y_DIR_PIN          15 // A0
16
 #define Y_DIR_PIN          15 // A0
17
 #define Y_ENABLE_PIN       39
17
 #define Y_ENABLE_PIN       39
18
 #define Y_MIN_PIN          48
18
 #define Y_MIN_PIN          48
19
-#define Y_MAX_PIN          -1   //15
19
+#define Y_MAX_PIN          15
20
 
20
 
21
 #define Z_STEP_PIN         31 // A2
21
 #define Z_STEP_PIN         31 // A2
22
 #define Z_DIR_PIN          32 // A6
22
 #define Z_DIR_PIN          32 // A6

+ 2
- 2
Marlin/pins_MEGATRONICS_1.h View File

12
 #define X_DIR_PIN 47
12
 #define X_DIR_PIN 47
13
 #define X_ENABLE_PIN 49
13
 #define X_ENABLE_PIN 49
14
 #define X_MIN_PIN 5
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
 #define Y_STEP_PIN 39 // A6
17
 #define Y_STEP_PIN 39 // A6
18
 #define Y_DIR_PIN 40 // A0
18
 #define Y_DIR_PIN 40 // A0
19
 #define Y_ENABLE_PIN 38
19
 #define Y_ENABLE_PIN 38
20
 #define Y_MIN_PIN 2
20
 #define Y_MIN_PIN 2
21
-#define Y_MAX_PIN -1 // 15
21
+#define Y_MAX_PIN 15
22
 
22
 
23
 #define Z_STEP_PIN 42 // A2
23
 #define Z_STEP_PIN 42 // A2
24
 #define Z_DIR_PIN 43 // A6
24
 #define Z_DIR_PIN 43 // A6

+ 2
- 2
Marlin/pins_MEGATRONICS_2.h View File

12
 #define X_DIR_PIN 27
12
 #define X_DIR_PIN 27
13
 #define X_ENABLE_PIN 25
13
 #define X_ENABLE_PIN 25
14
 #define X_MIN_PIN 37
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
 #define Y_STEP_PIN 4 // A6
17
 #define Y_STEP_PIN 4 // A6
18
 #define Y_DIR_PIN 54 // A0
18
 #define Y_DIR_PIN 54 // A0
19
 #define Y_ENABLE_PIN 5
19
 #define Y_ENABLE_PIN 5
20
 #define Y_MIN_PIN 41
20
 #define Y_MIN_PIN 41
21
-#define Y_MAX_PIN 38 //15
21
+#define Y_MAX_PIN 38
22
 
22
 
23
 #define Z_STEP_PIN 56 // A2
23
 #define Z_STEP_PIN 56 // A2
24
 #define Z_DIR_PIN 60 // A6
24
 #define Z_DIR_PIN 60 // A6

+ 6
- 6
Marlin/pins_RAMPS_OLD.h View File

13
 #define X_DIR_PIN          28
13
 #define X_DIR_PIN          28
14
 #define X_ENABLE_PIN       24
14
 #define X_ENABLE_PIN       24
15
 #define X_MIN_PIN           3
15
 #define X_MIN_PIN           3
16
-#define X_MAX_PIN          -1    //2
16
+#define X_MAX_PIN           2
17
 
17
 
18
 #define Y_STEP_PIN         38
18
 #define Y_STEP_PIN         38
19
 #define Y_DIR_PIN          40
19
 #define Y_DIR_PIN          40
20
 #define Y_ENABLE_PIN       36
20
 #define Y_ENABLE_PIN       36
21
 #define Y_MIN_PIN          16
21
 #define Y_MIN_PIN          16
22
-#define Y_MAX_PIN          -1    //17
22
+#define Y_MAX_PIN          17
23
 
23
 
24
 #define Z_STEP_PIN         44
24
 #define Z_STEP_PIN         44
25
 #define Z_DIR_PIN          46
25
 #define Z_DIR_PIN          46
26
 #define Z_ENABLE_PIN       42
26
 #define Z_ENABLE_PIN       42
27
 #define Z_MIN_PIN          18
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
 #define SDPOWER            48
34
 #define SDPOWER            48
35
 #define SDSS               53
35
 #define SDSS               53

Loading…
Cancel
Save