Browse Source

Define servo pins just like other pins

Scott Lahteine 9 years ago
parent
commit
56702e7bb9

+ 1
- 17
Marlin/pins_AZTEEG_X3_PRO.h View File

@@ -76,23 +76,7 @@
76 76
 //on a Delta with 1 servo. Running through the Z servo endstop in code. 
77 77
 //Physical wire attachment was done on EXT1 on the GND, 5V, and D47 pins.
78 78
 //
79
- #undef SERVO0_PIN
80
- #undef SERVO1_PIN
81
- #undef SERVO2_PIN
82
- #undef SERVO3_PIN
83
-
84
- #if HAS_SERVOS
85
-   #define SERVO0_PIN       47
86
-   #if NUM_SERVOS > 1
87
-     #define SERVO1_PIN     -1
88
-     #if NUM_SERVOS > 2
89
-       #define SERVO2_PIN   -1
90
-       #if NUM_SERVOS > 3
91
-         #define SERVO3_PIN -1
92
-       #endif
93
-     #endif
94
-   #endif
95
- #endif
79
+#define SERVO0_PIN         47
96 80
 
97 81
 //LCD Pins//
98 82
 

+ 4
- 12
Marlin/pins_MEGACONTROLLER.h View File

@@ -10,18 +10,10 @@
10 10
   #error Mega Controller supports up to 2 extruders. Comment this line to keep going.
11 11
 #endif
12 12
 
13
-#ifdef NUM_SERVOS
14
-   #define SERVO0_PIN         30
15
-   #if NUM_SERVOS > 1
16
-     #define SERVO1_PIN       31
17
-     #if NUM_SERVOS > 2
18
-       #define SERVO2_PIN     32
19
-       #if NUM_SERVOS > 3
20
-         #define SERVO3_PIN   33
21
-       #endif
22
-     #endif
23
-   #endif
24
-#endif // NUM_SERVOS
13
+#define SERVO0_PIN 30
14
+#define SERVO1_PIN 31
15
+#define SERVO2_PIN 32
16
+#define SERVO3_PIN 33
25 17
 
26 18
 #define X_STEP_PIN 62//A8
27 19
 #define X_DIR_PIN 63//A9

+ 4
- 12
Marlin/pins_MEGATRONICS_3.h View File

@@ -14,18 +14,10 @@
14 14
 #endif
15 15
 
16 16
 // Servo support
17
-#if HAS_SERVOS
18
-  #define SERVO0_PIN       46 //AUX3-6
19
-  #if NUM_SERVOS > 1
20
-    #define SERVO1_PIN     47 //AUX3-5
21
-    #if NUM_SERVOS > 2
22
-      #define SERVO2_PIN   48 //AUX3-4
23
-      #if NUM_SERVOS > 3
24
-        #define SERVO2_PIN 49 //AUX3-3
25
-      #endif
26
-    #endif
27
-  #endif
28
-#endif
17
+#define SERVO0_PIN         46 //AUX3-6
18
+#define SERVO1_PIN         47 //AUX3-5
19
+#define SERVO2_PIN         48 //AUX3-4
20
+#define SERVO2_PIN         49 //AUX3-3
29 21
 
30 22
 #define X_STEP_PIN         58
31 23
 #define X_DIR_PIN          57

+ 4
- 12
Marlin/pins_RAMBO.h View File

@@ -9,18 +9,10 @@
9 9
 #define LARGE_FLASH true
10 10
 
11 11
 // Servo support
12
-#if HAS_SERVOS
13
-  #define SERVO0_PIN       22 //motor header MX1
14
-  #if NUM_SERVOS > 1
15
-    #define SERVO1_PIN     23 //Motor header MX2
16
-    #if NUM_SERVOS > 2
17
-      #define SERVO2_PIN   24 //Motor header MX3
18
-      #if NUM_SERVOS > 3
19
-        #define SERVO2_PIN  5 //pwm header pin 5
20
-      #endif
21
-    #endif
22
-  #endif
23
-#endif
12
+#define SERVO0_PIN 22 // Motor header MX1
13
+#define SERVO1_PIN 23 // Motor header MX2
14
+#define SERVO2_PIN 24 // Motor header MX3
15
+#define SERVO2_PIN  5 // PWM header pin 5
24 16
 
25 17
 #if ENABLED(Z_PROBE_SLED)
26 18
   #define SLED_PIN         -1

+ 5
- 13
Marlin/pins_RAMPS_13.h View File

@@ -18,6 +18,11 @@
18 18
 
19 19
 #define LARGE_FLASH true
20 20
 
21
+#define SERVO0_PIN         11
22
+#define SERVO1_PIN          6
23
+#define SERVO2_PIN          5
24
+#define SERVO3_PIN          4
25
+
21 26
 #define X_STEP_PIN         54
22 27
 #define X_DIR_PIN          55
23 28
 #define X_ENABLE_PIN       38
@@ -122,19 +127,6 @@
122 127
 
123 128
 #define TEMP_BED_PIN         14   // ANALOG NUMBERING
124 129
 
125
-#if HAS_SERVOS
126
-  #define SERVO0_PIN         11
127
-  #if NUM_SERVOS > 1
128
-    #define SERVO1_PIN        6
129
-    #if NUM_SERVOS > 2
130
-      #define SERVO2_PIN      5
131
-      #if NUM_SERVOS > 3
132
-        #define SERVO3_PIN    4
133
-      #endif
134
-    #endif
135
-  #endif
136
-#endif
137
-
138 130
 #if ENABLED(Z_PROBE_SLED)
139 131
   #define SLED_PIN           -1
140 132
 #endif

+ 0
- 13
Marlin/pins_SANGUINOLOLU_11.h View File

@@ -37,19 +37,6 @@
37 37
   #define SLED_PIN         -1
38 38
 #endif
39 39
 
40
-#if HAS_SERVOS
41
-  #define SERVO0_PIN       -1
42
-  #if NUM_SERVOS > 1
43
-    #define SERVO1_PIN     -1
44
-    #if NUM_SERVOS > 2
45
-      #define SERVO2_PIN   -1
46
-      #if NUM_SERVOS > 3
47
-        #define SERVO3_PIN -1
48
-      #endif
49
-    #endif
50
-  #endif
51
-#endif
52
-
53 40
 #define PS_ON_PIN          -1
54 41
 #define KILL_PIN           -1
55 42
 

+ 1
- 3
Marlin/pins_SAV_MKI.h View File

@@ -108,6 +108,4 @@
108 108
   #define HOME_PIN           EXT_AUX_A4_IO
109 109
 #endif // SAV_3DLCD || SAV_3DGLCD
110 110
 
111
-#if HAS_SERVOS
112
-  #define SERVO0_PIN       41 // In teensy's pin definition for pinMode (in servo.cpp)
113
-#endif
111
+#define SERVO0_PIN         41 // In teensy's pin definition for pinMode (in servo.cpp)

+ 2
- 1
Marlin/pins_ULTIMAKER.h View File

@@ -8,6 +8,8 @@
8 8
 
9 9
 #define LARGE_FLASH true
10 10
 
11
+#define SERVO0_PIN 13 // untested
12
+
11 13
 #define X_STEP_PIN 25
12 14
 #define X_DIR_PIN 23
13 15
 #define X_MIN_PIN 22
@@ -53,7 +55,6 @@
53 55
 #define PS_ON_PIN          12
54 56
 #define KILL_PIN           -1
55 57
 #define SUICIDE_PIN        54  //PIN that has to be turned on right after start, to keep power flowing.
56
-#define SERVO0_PIN         13  // untested
57 58
 
58 59
 #if ENABLED(ULTRA_LCD)
59 60
 

Loading…
Cancel
Save