Browse Source

Permit more Creality pin overrides (#17820)

Dipl.-Ing. Raoul Rubien, BSc 4 years ago
parent
commit
739b738e7f
No account linked to committer's email address
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h

+ 7
- 2
Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h View File

43
   #define SD_DETECT_PIN                       49  // Always define onboard SD detect
43
   #define SD_DETECT_PIN                       49  // Always define onboard SD detect
44
 #endif
44
 #endif
45
 
45
 
46
-#define PS_ON_PIN                             40  // Used by CR2020 Industrial series
46
+#ifndef PS_ON_PIN
47
+  #define PS_ON_PIN                           40  // Used by CR2020 Industrial series
48
+#endif
49
+
47
 
50
 
48
 #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN)
51
 #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN)
49
   #define CASE_LIGHT_PIN                      65
52
   #define CASE_LIGHT_PIN                      65
61
 #define EXP4_PIN                              12  // PS_ON_PIN
64
 #define EXP4_PIN                              12  // PS_ON_PIN
62
 
65
 
63
 #define SUICIDE_PIN                           12  // Used by CR2020 Industrial series
66
 #define SUICIDE_PIN                           12  // Used by CR2020 Industrial series
64
-#define SUICIDE_PIN_INVERTING true                // Used by CR2020 Industrial series
67
+#ifndef SUICIDE_PIN_INVERTING
68
+  #define SUICIDE_PIN_INVERTING             true
69
+#endif

Loading…
Cancel
Save