瀏覽代碼

add pin definition to some motherboards

Christian Bohn 10 年之前
父節點
當前提交
f48599f172
共有 4 個檔案被更改,包括 13 行新增1 行删除
  1. 0
    1
      Marlin/Marlin_main.cpp
  2. 5
    0
      Marlin/pins_MEGATRONICS_3.h
  3. 4
    0
      Marlin/pins_RAMBO.h
  4. 4
    0
      Marlin/pins_RAMPS_13.h

+ 0
- 1
Marlin/Marlin_main.cpp 查看文件

1543
       do_blocking_move_to(X_MAX_POS + SLED_DOCKING_OFFSET + offset - 1, current_position[Y_AXIS], current_position[Z_AXIS]);  // Dock sled a bit closer to ensure proper capturing                                                                                                                           
1543
       do_blocking_move_to(X_MAX_POS + SLED_DOCKING_OFFSET + offset - 1, current_position[Y_AXIS], current_position[Z_AXIS]);  // Dock sled a bit closer to ensure proper capturing                                                                                                                           
1544
       digitalWrite(SLED_PIN, LOW); // turn off magnet
1544
       digitalWrite(SLED_PIN, LOW); // turn off magnet
1545
       do_blocking_move_to(oldXpos, current_position[Y_AXIS], current_position[Z_AXIS]); // return to position before docking
1545
       do_blocking_move_to(oldXpos, current_position[Y_AXIS], current_position[Z_AXIS]); // return to position before docking
1546
-      do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] - Z_RAISE_AFTER_PROBING);
1547
     } else {
1546
     } else {
1548
       float oldXpos = current_position[X_AXIS]; // save x position
1547
       float oldXpos = current_position[X_AXIS]; // save x position
1549
       float z_loc = current_position[Z_AXIS];
1548
       float z_loc = current_position[Z_AXIS];

+ 5
- 0
Marlin/pins_MEGATRONICS_3.h 查看文件

8
 
8
 
9
 #define LARGE_FLASH        true
9
 #define LARGE_FLASH        true
10
 
10
 
11
+
12
+#ifdef Z_PROBE_SLED
13
+  #define SLED_PIN         -1
14
+#endif
15
+
11
 // Servo support
16
 // Servo support
12
 #ifdef NUM_SERVOS
17
 #ifdef NUM_SERVOS
13
   #define SERVO0_PIN       46 //AUX3-6
18
   #define SERVO0_PIN       46 //AUX3-6

+ 4
- 0
Marlin/pins_RAMBO.h 查看文件

22
   #endif
22
   #endif
23
 #endif
23
 #endif
24
 
24
 
25
+#ifdef Z_PROBE_SLED
26
+  #define SLED_PIN         -1
27
+#endif
28
+
25
 #undef X_MS1_PIN
29
 #undef X_MS1_PIN
26
 #undef X_MS2_PIN
30
 #undef X_MS2_PIN
27
 #undef Y_MS1_PIN
31
 #undef Y_MS1_PIN

+ 4
- 0
Marlin/pins_RAMPS_13.h 查看文件

134
   #endif
134
   #endif
135
 #endif
135
 #endif
136
 
136
 
137
+#ifdef Z_PROBE_SLED
138
+  #define SLED_PIN         -1
139
+#endif
140
+
137
 #ifdef ULTRA_LCD
141
 #ifdef ULTRA_LCD
138
 
142
 
139
   #ifdef NEWPANEL
143
   #ifdef NEWPANEL

Loading…
取消
儲存