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,7 +43,10 @@
43 43
   #define SD_DETECT_PIN                       49  // Always define onboard SD detect
44 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 51
 #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN)
49 52
   #define CASE_LIGHT_PIN                      65
@@ -61,4 +64,6 @@
61 64
 #define EXP4_PIN                              12  // PS_ON_PIN
62 65
 
63 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