|
|
|
@ -133,25 +133,28 @@
|
|
|
|
|
|| (ENABLED(SWITCHING_EXTRUDER) && E_STEPPERS > N) \
|
|
|
|
|
|| (DISABLED(SWITCHING_EXTRUDER) && DISABLED(MIXING_EXTRUDER) && EXTRUDERS > N)
|
|
|
|
|
|
|
|
|
|
#define _E0_CS
|
|
|
|
|
#define _E0_MS1
|
|
|
|
|
#define _E0_MS2
|
|
|
|
|
#define _E0_MS3
|
|
|
|
|
|
|
|
|
|
#if E_NEEDED(0)
|
|
|
|
|
#if PIN_EXISTS(E0_CS)
|
|
|
|
|
#undef _E0_CS
|
|
|
|
|
#define _E0_CS E0_CS_PIN,
|
|
|
|
|
#else
|
|
|
|
|
#define _E0_CS
|
|
|
|
|
#endif
|
|
|
|
|
#if PIN_EXISTS(E0_MS1)
|
|
|
|
|
#undef _E0_MS1
|
|
|
|
|
#define _E0_MS1 E0_MS1_PIN,
|
|
|
|
|
#else
|
|
|
|
|
#define _E0_MS1
|
|
|
|
|
#endif
|
|
|
|
|
#if PIN_EXISTS(E0_MS2)
|
|
|
|
|
#undef _E0_MS2
|
|
|
|
|
#define _E0_MS2 E0_MS2_PIN,
|
|
|
|
|
#else
|
|
|
|
|
#define _E0_MS2
|
|
|
|
|
#endif
|
|
|
|
|
#if PIN_EXISTS(E0_MS3)
|
|
|
|
|
#undef _E0_MS3
|
|
|
|
|
#define _E0_MS3 E0_MS3_PIN,
|
|
|
|
|
#else
|
|
|
|
|
#define _E0_MS3
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define _E1_CS
|
|
|
|
@ -278,13 +281,18 @@
|
|
|
|
|
// E Steppers
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, _E0_CS _E0_MS1 _E0_MS2 _E0_MS3
|
|
|
|
|
#define _E0_PINS
|
|
|
|
|
#define _E1_PINS
|
|
|
|
|
#define _E2_PINS
|
|
|
|
|
#define _E3_PINS
|
|
|
|
|
#define _E4_PINS
|
|
|
|
|
#define _E5_PINS
|
|
|
|
|
|
|
|
|
|
#if EXTRUDERS
|
|
|
|
|
#undef _E0_PINS
|
|
|
|
|
#define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, _E0_CS _E0_MS1 _E0_MS2 _E0_MS3
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if ENABLED(SWITCHING_EXTRUDER)
|
|
|
|
|
// Tools 0 and 1 use E0
|
|
|
|
|
#if EXTRUDERS > 2 // Tools 2 and 3 use E1
|
|
|
|
@ -320,13 +328,16 @@
|
|
|
|
|
// Heaters, Fans, Temp Sensors
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#define _H0_PINS HEATER_0_PIN, E0_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_0_PIN),
|
|
|
|
|
#define _H0_PINS
|
|
|
|
|
#define _H1_PINS
|
|
|
|
|
#define _H2_PINS
|
|
|
|
|
#define _H3_PINS
|
|
|
|
|
#define _H4_PINS
|
|
|
|
|
#define _H5_PINS
|
|
|
|
|
|
|
|
|
|
#if HOTENDS
|
|
|
|
|
#undef _H0_PINS
|
|
|
|
|
#define _H0_PINS HEATER_0_PIN, E0_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_0_PIN),
|
|
|
|
|
#if HOTENDS > 1
|
|
|
|
|
#undef _H1_PINS
|
|
|
|
|
#define _H1_PINS HEATER_1_PIN, E1_AUTO_FAN_PIN, analogInputToDigitalPin(TEMP_1_PIN),
|
|
|
|
@ -347,6 +358,7 @@
|
|
|
|
|
#endif // HOTENDS > 3
|
|
|
|
|
#endif // HOTENDS > 2
|
|
|
|
|
#endif // HOTENDS > 1
|
|
|
|
|
#endif // HOTENDS
|
|
|
|
|
|
|
|
|
|
#define _BED_PINS HEATER_BED_PIN, analogInputToDigitalPin(TEMP_BED_PIN),
|
|
|
|
|
|
|
|
|
|