📌 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
|
||||
|
@ -189,19 +189,36 @@
|
||||
#define FIL_RUNOUT2_PIN MT_DET_2_PIN
|
||||
#endif
|
||||
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN PA13 // PW_DET
|
||||
#endif
|
||||
#define PS_ON_PIN PB2 // PW_OFF
|
||||
|
||||
//
|
||||
// Enable MKSPWC support
|
||||
//
|
||||
//#define SUICIDE_PIN PB2
|
||||
//#define KILL_PIN PA2
|
||||
//#define KILL_PIN_INVERTING true
|
||||
|
||||
//#define LED_PIN PB2
|
||||
//#define KILL_PIN PA2
|
||||
//#define KILL_PIN_STATE HIGH
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(PSU_CONTROL) // MKSPWC
|
||||
#if HAS_TFT_LVGL_UI
|
||||
#error "PSU_CONTROL cannot be used with TFT_LVGL_UI. Disable PSU_CONTROL to continue."
|
||||
#endif
|
||||
#ifndef PS_ON_PIN
|
||||
#define PS_ON_PIN PB2 // SUICIDE
|
||||
#endif
|
||||
#ifndef KILL_PIN
|
||||
#define KILL_PIN PA13 // PW_DET
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
#else
|
||||
#define SUICIDE_PIN PB2
|
||||
#define SUICIDE_PIN_INVERTING false
|
||||
#endif
|
||||
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN PA13 // PW_DET
|
||||
#endif
|
||||
|
||||
// Random Info
|
||||
#define USB_SERIAL -1 // USB Serial
|
||||
@ -222,8 +239,8 @@
|
||||
|
||||
// MKS TEST
|
||||
#if ENABLED(MKS_TEST)
|
||||
#define MKS_TEST_POWER_LOSS_PIN PA13 // PW_DET
|
||||
#define MKS_TEST_PS_ON_PIN PB2 // PW_OFF
|
||||
#define MKS_TEST_POWER_LOSS_PIN PA13 // PW_DET
|
||||
#define MKS_TEST_PS_ON_PIN PB2 // PW_OFF
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -195,12 +195,19 @@
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
//#define POWER_LOSS_PIN PA2 // PW_DET
|
||||
//#define PS_ON_PIN PA3 // PW_OFF
|
||||
//#define SUICIDE_PIN PB2 // Enable MKSPWC support
|
||||
//#define KILL_PIN PA2 // Enable MKSPWC support
|
||||
//#define KILL_PIN_INVERTING true // Enable MKSPWC support
|
||||
//#define LED_PIN PB2
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(PSU_CONTROL) // MKSPWC
|
||||
//#define SUICIDE_PIN PB2 // LED
|
||||
//#define KILL_PIN PA2 // PW_DET
|
||||
//#define KILL_PIN_STATE HIGH
|
||||
#else
|
||||
//#define POWER_LOSS_PIN PA2 // PW_DET
|
||||
//#define LED_PIN PB2
|
||||
#endif
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
|
Reference in New Issue
Block a user