Work with MKS PWC——power off when printing finish - makerbase-mks/MKS-H43 GitHub Wiki

Work with MKS PWC——power off when printing finish

Just config in the Marlin source, you need to add code to the pin file of the motherboard used. Take sgen_L V1.0 as an example, find pins_MKS_SGEN_L.h in the marlin firmware, and then add the following code:

#define SUICIDE_PIN P1_23 //Power failure detection pin configuration

#define SUICIDE_PIN_INVERTING false

#define KILL_PIN P1_24 //After hitting the shutdown pin configuration

#define KILL_PIN_STATE true