📌 MKS pins for PSU_CONTROL (#22528)
This commit is contained in:
@ -147,7 +147,7 @@
|
||||
#define TFT_RS_PIN FSMC_RS_PIN
|
||||
#endif
|
||||
|
||||
#if ENABLED(TFT_LVGL_UI)
|
||||
#if HAS_TFT_LVGL_UI
|
||||
// LVGL
|
||||
#define HAS_SPI_FLASH_FONT 1
|
||||
#define HAS_GCODE_PREVIEW 1
|
||||
|
@ -195,9 +195,10 @@
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
//#define POWER_LOSS_PIN PA1 // PW_SO
|
||||
#if ENABLED(BACKUP_POWER_SUPPLY)
|
||||
#define POWER_LOSS_PIN PA2 // PW_DET (UPS) MKSPWC
|
||||
#else
|
||||
//#define POWER_LOSS_PIN PA1 // PW_SO
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -217,7 +218,7 @@
|
||||
//
|
||||
#if ENABLED(PSU_CONTROL)
|
||||
#define KILL_PIN PA2 // PW_DET
|
||||
#define KILL_PIN_INVERTING true
|
||||
#define KILL_PIN_STATE HIGH
|
||||
//#define PS_ON_PIN PA3 // PW_CN /PW_OFF
|
||||
#endif
|
||||
|
||||
|
@ -183,12 +183,11 @@
|
||||
// Misc. Functions
|
||||
//
|
||||
#if HAS_TFT_LVGL_UI
|
||||
//#define MKSPWC
|
||||
#ifdef MKSPWC
|
||||
#define SUICIDE_PIN PB2 // Enable MKSPWC SUICIDE PIN
|
||||
#define SUICIDE_PIN_INVERTING false // Enable MKSPWC PIN STATE
|
||||
#define KILL_PIN PA2 // Enable MKSPWC DET PIN
|
||||
#define KILL_PIN_STATE true // Enable MKSPWC PIN STATE
|
||||
#if ENABLED(PSU_CONTROL) // MKSPWC
|
||||
#define SUICIDE_PIN PB2 // PW_OFF
|
||||
#define SUICIDE_PIN_INVERTING false
|
||||
#define KILL_PIN PA2 // PW_DET
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
|
||||
#define MT_DET_1_PIN PA4 // LVGL UI FILAMENT RUNOUT1 PIN
|
||||
|
@ -126,6 +126,19 @@
|
||||
|
||||
#define FIL_RUNOUT_PIN PB10 // MT_DET
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(PSU_CONTROL) // MKSPWC
|
||||
#ifndef PS_ON_PIN
|
||||
#define PS_ON_PIN PA14 // PW_OFF
|
||||
#endif
|
||||
#ifndef KILL_PIN
|
||||
#define KILL_PIN PB10 // PW_DET
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* _____ _____ _____
|
||||
* (BEEPER) PC1 | 1 2 | PC3 (BTN_ENC) (MISO) PB14 | 1 2 | PB13 (SD_SCK) 5V | 1 2 | GND
|
||||
@ -158,7 +171,7 @@
|
||||
#elif ENABLED(MKS_MINI_12864_V3)
|
||||
#define DOGLCD_CS PA4
|
||||
#define DOGLCD_A0 PA5
|
||||
#define LCD_PINS_DC DOGLCD_A0
|
||||
#define LCD_PINS_DC DOGLCD_A0
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN PA6
|
||||
#define NEOPIXEL_PIN PA7
|
||||
@ -189,8 +202,8 @@
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SPI_DEVICE 2
|
||||
#define ONBOARD_SPI_DEVICE 2
|
||||
#define SPI_DEVICE 2
|
||||
#define ONBOARD_SPI_DEVICE 2
|
||||
#define SDSS SD_SS_PIN
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#define SD_DETECT_PIN PC10
|
||||
|
@ -127,18 +127,29 @@
|
||||
//#define TEMP_0_CS_PIN PE5 // TC1 - CS1
|
||||
//#define TEMP_0_CS_PIN PE6 // TC2 - CS2
|
||||
|
||||
//
|
||||
// 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 PA2
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
#else
|
||||
#define SUICIDE_PIN PB2
|
||||
#define SUICIDE_PIN_INVERTING false
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#if HAS_TFT_LVGL_UI
|
||||
//#define MKSPWC
|
||||
#ifdef MKSPWC
|
||||
#define SUICIDE_PIN PB2 // Enable MKSPWC SUICIDE PIN
|
||||
#define SUICIDE_PIN_INVERTING false // Enable MKSPWC PIN STATE
|
||||
#define KILL_PIN PA2 // Enable MKSPWC DET PIN
|
||||
#define KILL_PIN_STATE true // Enable MKSPWC PIN STATE
|
||||
#endif
|
||||
|
||||
#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_PIN_INVERTING false // LVGL UI filament RUNOUT PIN STATE
|
||||
|
@ -191,17 +191,29 @@
|
||||
//#define TEMP_0_CS_PIN PE5 // TC1 - CS1
|
||||
//#define TEMP_0_CS_PIN PE6 // TC2 - CS2
|
||||
|
||||
//
|
||||
// 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 PA2
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
#else
|
||||
#define SUICIDE_PIN PB2
|
||||
#define SUICIDE_PIN_INVERTING false
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#if HAS_TFT_LVGL_UI
|
||||
//#define MKSPWC
|
||||
#ifdef MKSPWC
|
||||
#define SUICIDE_PIN PB2 // Enable MKSPWC SUICIDE PIN
|
||||
#define SUICIDE_PIN_INVERTING false // Enable MKSPWC PIN STATE
|
||||
#define KILL_PIN PA2 // Enable MKSPWC DET PIN
|
||||
#define KILL_PIN_STATE true // Enable MKSPWC PIN STATE
|
||||
#endif
|
||||
|
||||
#define MT_DET_1_PIN PA4 // LVGL UI FILAMENT RUNOUT1 PIN
|
||||
#define MT_DET_2_PIN PE6 // LVGL UI FILAMENT RUNOUT2 PIN
|
||||
|
@ -179,10 +179,28 @@
|
||||
//#define TEMP_0_CS_PIN PF11 // TC2 - CS2
|
||||
|
||||
#define POWER_LOSS_PIN PA2 // PW_DET
|
||||
#define PS_ON_PIN PG11 // PW_OFF
|
||||
#define FIL_RUNOUT_PIN PA4 // MT_DET1
|
||||
//#define FIL_RUNOUT_PIN PE6 // MT_DET2
|
||||
//#define FIL_RUNOUT_PIN PG14 // MT_DET3
|
||||
#define FIL_RUNOUT2_PIN PE6 // MT_DET2
|
||||
#define FIL_RUNOUT3_PIN PG14 // MT_DET3
|
||||
|
||||
//
|
||||
// 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 PG11 // SUICIDE
|
||||
#endif
|
||||
#ifndef KILL_PIN
|
||||
#define KILL_PIN PA2
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
#else
|
||||
#define SUICIDE_PIN PG11
|
||||
#define SUICIDE_PIN_INVERTING false
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Card
|
||||
|
Reference in New Issue
Block a user