Browse Source

Merge pull request #7338 from thinkyhead/bf_mks_ps_on_pin

MKS 1.3+: Add pin mapping for PS_ON
pull/1/head
Scott Lahteine 7 years ago
committed by GitHub
parent
commit
d6d6043548
  1. 10
      Marlin/pins_MKS_13.h
  2. 4
      Marlin/pins_RAMPS.h

10
Marlin/pins_MKS_13.h

@ -41,6 +41,16 @@
// Power outputs EFBF or EFBE // Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7 #define MOSFET_D_PIN 7
//
// PSU / SERVO
//
// If POWER_SUPPLY is specified, always hijack Servo 3
//
#if POWER_SUPPLY > 0
#define SERVO3_PIN -1
#define PS_ON_PIN 4
#endif
#include "pins_RAMPS.h" #include "pins_RAMPS.h"
// //

4
Marlin/pins_RAMPS.h

@ -64,7 +64,9 @@
#endif #endif
#define SERVO1_PIN 6 #define SERVO1_PIN 6
#define SERVO2_PIN 5 #define SERVO2_PIN 5
#ifndef SERVO3_PIN
#define SERVO3_PIN 4 #define SERVO3_PIN 4
#endif
// //
// Limit Switches // Limit Switches
@ -203,7 +205,9 @@
// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
#define FIL_RUNOUT_PIN 4 #define FIL_RUNOUT_PIN 4
#ifndef PS_ON_PIN
#define PS_ON_PIN 12 #define PS_ON_PIN 12
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN) #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
#if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // try to use servo connector first #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // try to use servo connector first

Loading…
Cancel
Save