|
|
@ -279,6 +279,18 @@ |
|
|
|
#define HEATER_3_USES_THERMISTOR |
|
|
|
#endif |
|
|
|
|
|
|
|
#if TEMP_SENSOR_4 <= -2 |
|
|
|
#error "MAX6675 / MAX31855 Thermocouples not supported for TEMP_SENSOR_4" |
|
|
|
#elif TEMP_SENSOR_4 == -1 |
|
|
|
#define HEATER_4_USES_AD595 |
|
|
|
#elif TEMP_SENSOR_4 == 0 |
|
|
|
#undef HEATER_4_MINTEMP |
|
|
|
#undef HEATER_4_MAXTEMP |
|
|
|
#elif TEMP_SENSOR_4 > 0 |
|
|
|
#define THERMISTORHEATER_4 TEMP_SENSOR_4 |
|
|
|
#define HEATER_4_USES_THERMISTOR |
|
|
|
#endif |
|
|
|
|
|
|
|
#if TEMP_SENSOR_BED <= -2 |
|
|
|
#error "MAX6675 / MAX31855 Thermocouples not supported for TEMP_SENSOR_BED" |
|
|
|
#elif TEMP_SENSOR_BED == -1 |
|
|
@ -427,16 +439,19 @@ |
|
|
|
#define HAS_TEMP_1 (PIN_EXISTS(TEMP_1) && TEMP_SENSOR_1 != 0 && TEMP_SENSOR_1 > -2) |
|
|
|
#define HAS_TEMP_2 (PIN_EXISTS(TEMP_2) && TEMP_SENSOR_2 != 0 && TEMP_SENSOR_2 > -2) |
|
|
|
#define HAS_TEMP_3 (PIN_EXISTS(TEMP_3) && TEMP_SENSOR_3 != 0 && TEMP_SENSOR_3 > -2) |
|
|
|
#define HAS_TEMP_4 (PIN_EXISTS(TEMP_4) && TEMP_SENSOR_4 != 0 && TEMP_SENSOR_4 > -2) |
|
|
|
#define HAS_TEMP_BED (PIN_EXISTS(TEMP_BED) && TEMP_SENSOR_BED != 0 && TEMP_SENSOR_BED > -2) |
|
|
|
#define HAS_HEATER_0 (PIN_EXISTS(HEATER_0)) |
|
|
|
#define HAS_HEATER_1 (PIN_EXISTS(HEATER_1)) |
|
|
|
#define HAS_HEATER_2 (PIN_EXISTS(HEATER_2)) |
|
|
|
#define HAS_HEATER_3 (PIN_EXISTS(HEATER_3)) |
|
|
|
#define HAS_HEATER_4 (PIN_EXISTS(HEATER_4)) |
|
|
|
#define HAS_HEATER_BED (PIN_EXISTS(HEATER_BED)) |
|
|
|
#define HAS_AUTO_FAN_0 (PIN_EXISTS(E0_AUTO_FAN)) |
|
|
|
#define HAS_AUTO_FAN_1 (HOTENDS > 1 && PIN_EXISTS(E1_AUTO_FAN)) |
|
|
|
#define HAS_AUTO_FAN_2 (HOTENDS > 2 && PIN_EXISTS(E2_AUTO_FAN)) |
|
|
|
#define HAS_AUTO_FAN_3 (HOTENDS > 3 && PIN_EXISTS(E3_AUTO_FAN)) |
|
|
|
#define HAS_AUTO_FAN_4 (HOTENDS > 4 && PIN_EXISTS(E4_AUTO_FAN)) |
|
|
|
#define HAS_AUTO_FAN (HAS_AUTO_FAN_0 || HAS_AUTO_FAN_1 || HAS_AUTO_FAN_2 || HAS_AUTO_FAN_3) |
|
|
|
#define AUTO_1_IS_0 (E1_AUTO_FAN_PIN == E0_AUTO_FAN_PIN) |
|
|
|
#define AUTO_2_IS_0 (E2_AUTO_FAN_PIN == E0_AUTO_FAN_PIN) |
|
|
@ -444,6 +459,10 @@ |
|
|
|
#define AUTO_3_IS_0 (E3_AUTO_FAN_PIN == E0_AUTO_FAN_PIN) |
|
|
|
#define AUTO_3_IS_1 (E3_AUTO_FAN_PIN == E1_AUTO_FAN_PIN) |
|
|
|
#define AUTO_3_IS_2 (E3_AUTO_FAN_PIN == E2_AUTO_FAN_PIN) |
|
|
|
#define AUTO_4_IS_0 (E4_AUTO_FAN_PIN == E0_AUTO_FAN_PIN) |
|
|
|
#define AUTO_4_IS_1 (E4_AUTO_FAN_PIN == E1_AUTO_FAN_PIN) |
|
|
|
#define AUTO_4_IS_2 (E4_AUTO_FAN_PIN == E2_AUTO_FAN_PIN) |
|
|
|
#define AUTO_4_IS_3 (E4_AUTO_FAN_PIN == E3_AUTO_FAN_PIN) |
|
|
|
#define HAS_FAN0 (PIN_EXISTS(FAN)) |
|
|
|
#define HAS_FAN1 (PIN_EXISTS(FAN1) && CONTROLLERFAN_PIN != FAN1_PIN && E0_AUTO_FAN_PIN != FAN1_PIN && E1_AUTO_FAN_PIN != FAN1_PIN && E2_AUTO_FAN_PIN != FAN1_PIN && E3_AUTO_FAN_PIN != FAN1_PIN) |
|
|
|
#define HAS_FAN2 (PIN_EXISTS(FAN2) && CONTROLLERFAN_PIN != FAN2_PIN && E0_AUTO_FAN_PIN != FAN2_PIN && E1_AUTO_FAN_PIN != FAN2_PIN && E2_AUTO_FAN_PIN != FAN2_PIN && E3_AUTO_FAN_PIN != FAN2_PIN) |
|
|
@ -543,9 +562,12 @@ |
|
|
|
#define WRITE_HEATER_2(v) WRITE(HEATER_2_PIN, v) |
|
|
|
#if HOTENDS > 3 |
|
|
|
#define WRITE_HEATER_3(v) WRITE(HEATER_3_PIN, v) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#if HOTENDS > 4 |
|
|
|
#define WRITE_HEATER_4(v) WRITE(HEATER_4_PIN, v) |
|
|
|
#endif // HOTENDS > 4
|
|
|
|
#endif // HOTENDS > 3
|
|
|
|
#endif // HOTENDS > 2
|
|
|
|
#endif // HOTENDS > 1
|
|
|
|
#if ENABLED(HEATERS_PARALLEL) |
|
|
|
#define WRITE_HEATER_0(v) { WRITE_HEATER_0P(v); WRITE_HEATER_1(v); } |
|
|
|
#else |
|
|
|