📌 MKS pins for PSU_CONTROL (#22528)
This commit is contained in:
@@ -210,10 +210,8 @@
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define MT_DET_1 Y_MAX_PIN
|
||||
#define MT_DET_2 Z_MAX_PIN
|
||||
#define PW_DET Y_MAX_PIN
|
||||
#define PW_OFF Z_MAX_PIN
|
||||
#define MT_DET_1 PC5 // Y+
|
||||
#define MT_DET_2 PB12 // Z+
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN MT_DET_1
|
||||
@@ -222,8 +220,23 @@
|
||||
#define FIL_RUNOUT2_PIN MT_DET_2
|
||||
#endif
|
||||
|
||||
#define POWER_LOSS_PIN PW_DET
|
||||
#define PS_ON_PIN PW_OFF
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(PSU_CONTROL) // MKSPWC
|
||||
#ifndef PS_ON_PIN
|
||||
#define PS_ON_PIN MT_DET_2 // Z+
|
||||
#endif
|
||||
#ifndef KILL_PIN
|
||||
#define KILL_PIN MT_DET_1 // Y+
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
#else
|
||||
#define PW_DET MT_DET_1
|
||||
#define PW_OFF MT_DET_2
|
||||
#define POWER_LOSS_PIN PW_DET
|
||||
#define PS_ON_PIN PW_OFF
|
||||
#endif
|
||||
|
||||
// Random Info
|
||||
#define USB_SERIAL -1 // USB Serial
|
||||
|
||||
Reference in New Issue
Block a user