Allow suicide pin inverting (#15586)

This commit is contained in:
InsanityAutomation
2019-10-24 15:07:28 -04:00
committed by Scott Lahteine
parent 2a7e1d459f
commit 82fb046013
5 changed files with 25 additions and 10 deletions

View File

@ -801,6 +801,9 @@
#ifndef SUICIDE_PIN
#define SUICIDE_PIN -1
#endif
#ifndef SUICIDE_PIN_INVERTING
#define SUICIDE_PIN_INVERTING false
#endif
#ifndef NUM_SERVO_PLUGS
#define NUM_SERVO_PLUGS 4

View File

@ -36,15 +36,27 @@
#define FIL_RUNOUT_PIN 2
#if NUM_RUNOUT_SENSORS > 1
#define FIL_RUNOUT2_PIN 15 // Creality CR-X can use dual runout sensors
#define FIL_RUNOUT2_PIN 15 // Creality CR-X can use dual runout sensors
#endif
#define SD_DETECT_PIN 49 // Always define onboard SD detect
#define BEEPER_PIN 37 // Always define beeper pin so Play Tone works with ExtUI
#define SD_DETECT_PIN 49 // Always define onboard SD detect
#define PS_ON_PIN 40 // Used by CR2020 Industrial series
#if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN)
#define CASE_LIGHT_PIN 65
#endif
#include "pins_RAMPS.h"
#define EXP1_PIN 65 // A11
#define EXP2_PIN 66 // A12
#define EXP3_PIN 11 // SERVO0_PIN
#define EXP4_PIN 12 // PS_ON_PIN
#ifndef BEEPER_PIN
#define BEEPER_PIN 37 // Always define beeper pin so Play Tone works with ExtUI
#endif
#define EXP1_PIN 65 // A11 - Used by CR2020 Industrial series for case
#define EXP2_PIN 66 // A12
#define EXP3_PIN 11 // SERVO0_PIN
#define EXP4_PIN 12 // PS_ON_PIN
#define SUICIDE_PIN 12 // Used by CR2020 Industrial series
#define SUICIDE_PIN_INVERTING true // Used by CR2020 Industrial series