Browse Source

Fix for Ender 4 fan/case light pin

See #12731
Scott Lahteine 5 years ago
parent
commit
d71dc5cf42

+ 1
- 1
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h View File

@@ -267,7 +267,7 @@
267 267
  */
268 268
 #define CASE_LIGHT_ENABLE
269 269
 #if ENABLED(CASE_LIGHT_ENABLE)
270
-  #define CASE_LIGHT_PIN ENDER4_FAN_PIN       // Override the default pin if needed
270
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
271 271
   #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
272 272
   #define CASE_LIGHT_DEFAULT_ON false         // Set default power-up state on
273 273
   #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)

+ 10
- 5
Marlin/src/pins/pins_RAMPS_ENDER_4.h View File

@@ -28,8 +28,13 @@
28 28
 
29 29
 #include "pins_RAMPS.h"
30 30
 
31
-// The board only has one controllable fan connector, the others are just plain 12V connectors
32
-// in the default configuration, this is used to control the brightness of the LED band
33
-// hotend and controller fan are therefore always-on
34
-#define ENDER4_FAN_PIN RAMPS_D9_PIN
35
-#undef FAN_PIN
31
+// The board only has one PWM fan connector. The others are 12V always-on.
32
+// The default config uses this pin to control the brightness of the LED
33
+// band (case light). Thus the hotend and controller fans are always-on.
34
+
35
+#if ENABLED(CASE_LIGHT_ENABLE)
36
+  #undef FAN_PIN
37
+  #ifndef CASE_LIGHT_PIN
38
+    #define CASE_LIGHT_PIN RAMPS_D9_PIN
39
+  #endif
40
+#endif

Loading…
Cancel
Save