Browse Source

Megatronics 3 servo pins

- Naive implementation, assuming the data sheet pin numbers correspond
to Arduino pin numbers.
Scott Lahteine 9 years ago
parent
commit
d0ad8a978c
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      Marlin/pins_MEGATRONICS_3.h

+ 14
- 0
Marlin/pins_MEGATRONICS_3.h View File

@@ -8,6 +8,20 @@
8 8
 
9 9
 #define LARGE_FLASH        true
10 10
 
11
+// Servo support
12
+#ifdef NUM_SERVOS
13
+  #define SERVO0_PIN       46 //AUX3-6
14
+  #if NUM_SERVOS > 1
15
+    #define SERVO1_PIN     47 //AUX3-5
16
+    #if NUM_SERVOS > 2
17
+      #define SERVO2_PIN   48 //AUX3-4
18
+      #if NUM_SERVOS > 3
19
+        #define SERVO2_PIN 49 //AUX3-3
20
+      #endif
21
+    #endif
22
+  #endif
23
+#endif
24
+
11 25
 #define X_STEP_PIN         58
12 26
 #define X_DIR_PIN          57
13 27
 #define X_ENABLE_PIN       59

Loading…
Cancel
Save