Bläddra i källkod

Permit more Creality pin overrides (#17820)

Dipl.-Ing. Raoul Rubien, BSc 5 år sedan
förälder
incheckning
739b738e7f
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 7 tillägg och 2 borttagningar
  1. 7
    2
      Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h

+ 7
- 2
Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h Visa fil

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

Laddar…
Avbryt
Spara