Pārlūkot izejas kodu

Move servos to the top in pins_MEGACONTROLLER.h

Scott Lahteine 9 gadus atpakaļ
vecāks
revīzija
932f1c109e
1 mainītis faili ar 14 papildinājumiem un 14 dzēšanām
  1. 14
    14
      Marlin/pins_MEGACONTROLLER.h

+ 14
- 14
Marlin/pins_MEGACONTROLLER.h Parādīt failu

@@ -9,6 +9,20 @@
9 9
 #if EXTRUDERS > 2
10 10
   #error Mega Controller supports up to 2 extruders. Comment this line to keep going.
11 11
 #endif
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
25
+
12 26
 #define X_STEP_PIN 62//A8
13 27
 #define X_DIR_PIN 63//A9
14 28
 #define X_ENABLE_PIN 61//A7
@@ -74,20 +88,6 @@
74 88
   #define TEMP_BED_PIN 1 // ANALOG NUMBERING
75 89
 #endif
76 90
 
77
-#ifdef NUM_SERVOS
78
-   #define SERVO0_PIN         30
79
-
80
-   #if NUM_SERVOS > 1
81
-     #define SERVO1_PIN         31
82
-     #if NUM_SERVOS > 2
83
-       #define SERVO2_PIN         32
84
-       #if NUM_SERVOS > 3
85
-         #define SERVO3_PIN         33
86
-       #endif
87
-     #endif
88
-   #endif
89
-#endif// NUM_SERVOS
90
-
91 91
 #ifdef MINIPANEL
92 92
     #define BEEPER 46
93 93
     // Pins for DOGM SPI LCD Support

Notiek ielāde…
Atcelt
Saglabāt