ソースを参照

Merge pull request #7338 from thinkyhead/bf_mks_ps_on_pin

MKS 1.3+: Add pin mapping for PS_ON
Scott Lahteine 8年前
コミット
d6d6043548
2個のファイルの変更16行の追加2行の削除
  1. 10
    0
      Marlin/pins_MKS_13.h
  2. 6
    2
      Marlin/pins_RAMPS.h

+ 10
- 0
Marlin/pins_MKS_13.h ファイルの表示

41
 // Power outputs EFBF or EFBE
41
 // Power outputs EFBF or EFBE
42
 #define MOSFET_D_PIN 7
42
 #define MOSFET_D_PIN 7
43
 
43
 
44
+//
45
+// PSU / SERVO
46
+//
47
+// If POWER_SUPPLY is specified, always hijack Servo 3
48
+//
49
+#if POWER_SUPPLY > 0
50
+  #define SERVO3_PIN      -1
51
+  #define PS_ON_PIN        4
52
+#endif
53
+
44
 #include "pins_RAMPS.h"
54
 #include "pins_RAMPS.h"
45
 
55
 
46
 //
56
 //

+ 6
- 2
Marlin/pins_RAMPS.h ファイルの表示

64
 #endif
64
 #endif
65
 #define SERVO1_PIN          6
65
 #define SERVO1_PIN          6
66
 #define SERVO2_PIN          5
66
 #define SERVO2_PIN          5
67
-#define SERVO3_PIN          4
67
+#ifndef SERVO3_PIN
68
+  #define SERVO3_PIN        4
69
+#endif
68
 
70
 
69
 //
71
 //
70
 // Limit Switches
72
 // Limit Switches
203
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
205
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
204
 #define FIL_RUNOUT_PIN      4
206
 #define FIL_RUNOUT_PIN      4
205
 
207
 
206
-#define PS_ON_PIN          12
208
+#ifndef PS_ON_PIN
209
+  #define PS_ON_PIN        12
210
+#endif
207
 
211
 
208
 #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
212
 #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
209
   #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // try to use servo connector first
213
   #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // try to use servo connector first

読み込み中…
キャンセル
保存