Fix for Ender 4 fan/case light pin

See #12731
This commit is contained in:
Scott Lahteine 2019-03-03 07:43:27 -06:00
parent 7640b328df
commit d71dc5cf42
2 changed files with 11 additions and 6 deletions

View File

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

View File

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