|
@ -128,17 +128,28 @@ |
|
|
//#define TEMP_0_CS_PIN PE6 // TC2 - CS2
|
|
|
//#define TEMP_0_CS_PIN PE6 // TC2 - CS2
|
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
// Misc. Functions
|
|
|
// Power Supply Control
|
|
|
//
|
|
|
//
|
|
|
|
|
|
#if ENABLED(PSU_CONTROL) // MKSPWC
|
|
|
#if HAS_TFT_LVGL_UI |
|
|
#if HAS_TFT_LVGL_UI |
|
|
//#define MKSPWC
|
|
|
#error "PSU_CONTROL cannot be used with TFT_LVGL_UI. Disable PSU_CONTROL to continue." |
|
|
#ifdef MKSPWC |
|
|
#endif |
|
|
#define SUICIDE_PIN PB2 // Enable MKSPWC SUICIDE PIN
|
|
|
#ifndef PS_ON_PIN |
|
|
#define SUICIDE_PIN_INVERTING false // Enable MKSPWC PIN STATE
|
|
|
#define PS_ON_PIN PB2 // SUICIDE
|
|
|
#define KILL_PIN PA2 // Enable MKSPWC DET PIN
|
|
|
#endif |
|
|
#define KILL_PIN_STATE true // Enable MKSPWC PIN STATE
|
|
|
#ifndef KILL_PIN |
|
|
|
|
|
#define KILL_PIN PA2 |
|
|
|
|
|
#define KILL_PIN_STATE HIGH |
|
|
|
|
|
#endif |
|
|
|
|
|
#else |
|
|
|
|
|
#define SUICIDE_PIN PB2 |
|
|
|
|
|
#define SUICIDE_PIN_INVERTING false |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
// Misc. Functions
|
|
|
|
|
|
//
|
|
|
|
|
|
#if HAS_TFT_LVGL_UI |
|
|
#define MT_DET_1_PIN PA4 // LVGL UI FILAMENT RUNOUT1 PIN
|
|
|
#define MT_DET_1_PIN PA4 // LVGL UI FILAMENT RUNOUT1 PIN
|
|
|
#define MT_DET_2_PIN PE6 // LVGL UI FILAMENT RUNOUT2 PIN
|
|
|
#define MT_DET_2_PIN PE6 // LVGL UI FILAMENT RUNOUT2 PIN
|
|
|
#define MT_DET_PIN_INVERTING false // LVGL UI filament RUNOUT PIN STATE
|
|
|
#define MT_DET_PIN_INVERTING false // LVGL UI filament RUNOUT PIN STATE
|
|
|