Support two MAX6675 thermocouples (#8686)
This commit is contained in:
committed by
Scott Lahteine
parent
0e610815e4
commit
ca21ac6b9b
@ -275,12 +275,12 @@
|
||||
#elif TEMP_SENSOR_0 == -3
|
||||
#define HEATER_0_USES_MAX6675
|
||||
#define MAX6675_IS_MAX31855
|
||||
#define MAX6675_TMIN -270
|
||||
#define MAX6675_TMAX 1800
|
||||
#define HEATER_0_MAX6675_TMIN -270
|
||||
#define HEATER_0_MAX6675_TMAX 1800
|
||||
#elif TEMP_SENSOR_0 == -2
|
||||
#define HEATER_0_USES_MAX6675
|
||||
#define MAX6675_TMIN 0
|
||||
#define MAX6675_TMAX 1024
|
||||
#define HEATER_0_MAX6675_TMIN 0
|
||||
#define HEATER_0_MAX6675_TMAX 1024
|
||||
#elif TEMP_SENSOR_0 == -1
|
||||
#define HEATER_0_USES_AD595
|
||||
#elif TEMP_SENSOR_0 == 0
|
||||
@ -294,9 +294,19 @@
|
||||
#if TEMP_SENSOR_1 == -4
|
||||
#define HEATER_1_USES_AD8495
|
||||
#elif TEMP_SENSOR_1 == -3
|
||||
#error "MAX31855 Thermocouples (-3) not supported for TEMP_SENSOR_1."
|
||||
#if TEMP_SENSOR_0 == -2
|
||||
#error "If MAX31855 Thermocouple (-3) is used for TEMP_SENSOR_1 then TEMP_SENSOR_0 must match."
|
||||
#endif
|
||||
#define HEATER_1_USES_MAX6675
|
||||
#define HEATER_1_MAX6675_TMIN -270
|
||||
#define HEATER_1_MAX6675_TMAX 1800
|
||||
#elif TEMP_SENSOR_1 == -2
|
||||
#error "MAX6675 Thermocouples (-2) not supported for TEMP_SENSOR_1."
|
||||
#if TEMP_SENSOR_0 == -3
|
||||
#error "If MAX31855 Thermocouple (-3) is used for TEMP_SENSOR_0 then TEMP_SENSOR_1 must match."
|
||||
#endif
|
||||
#define HEATER_1_USES_MAX6675
|
||||
#define HEATER_1_MAX6675_TMIN 0
|
||||
#define HEATER_1_MAX6675_TMAX 1024
|
||||
#elif TEMP_SENSOR_1 == -1
|
||||
#define HEATER_1_USES_AD595
|
||||
#elif TEMP_SENSOR_1 == 0
|
||||
|
@ -335,6 +335,10 @@
|
||||
#error "MBL_Z_STEP is now MESH_EDIT_Z_STEP. Please update your configuration."
|
||||
#elif defined(CHDK)
|
||||
#error "CHDK is now CHDK_PIN. Please update your Configuration_adv.h."
|
||||
#elif defined(MAX6675_SS)
|
||||
#error "MAX6675_SS is now MAX6675_SS_PIN. Please update your configuration and/or pins."
|
||||
#elif defined(MAX6675_SS2)
|
||||
#error "MAX6675_SS2 is now MAX6675_SS2_PIN. Please update your configuration and/or pins."
|
||||
#endif
|
||||
|
||||
#define BOARD_MKS_13 -47
|
||||
@ -1280,7 +1284,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
|
||||
*/
|
||||
#if !HAS_HEATER_0
|
||||
#error "HEATER_0_PIN not defined for this board."
|
||||
#elif !PIN_EXISTS(TEMP_0) && !(defined(MAX6675_SS) && MAX6675_SS >= 0)
|
||||
#elif !PIN_EXISTS(TEMP_0) && !PIN_EXISTS(MAX6675_SS)
|
||||
#error "TEMP_0_PIN not defined for this board."
|
||||
#elif ((defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)) && (!PIN_EXISTS(E0_STEP) || !PIN_EXISTS(E0_DIR)))
|
||||
#error "E0_STEP_PIN or E0_DIR_PIN not defined for this board."
|
||||
@ -1291,16 +1295,18 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
|
||||
#endif
|
||||
|
||||
// Pins are required for heaters
|
||||
#if ENABLED(HEATER_0_USES_MAX6675) && !(defined(MAX6675_SS) && MAX6675_SS >= 0)
|
||||
#error "MAX6675_SS (required for TEMP_SENSOR_0) not defined for this board."
|
||||
#if ENABLED(HEATER_0_USES_MAX6675) && !PIN_EXISTS(MAX6675_SS)
|
||||
#error "MAX6675_SS_PIN (required for TEMP_SENSOR_0) not defined for this board."
|
||||
#elif (HOTENDS > 1 || ENABLED(HEATERS_PARALLEL)) && !HAS_HEATER_1
|
||||
#error "HEATER_1_PIN not defined for this board."
|
||||
#endif
|
||||
|
||||
#if HOTENDS > 1
|
||||
#if TEMP_SENSOR_1 == 0
|
||||
#if ENABLED(HEATER_1_USES_MAX6675) && !PIN_EXISTS(MAX6675_SS2)
|
||||
#error "MAX6675_SS2_PIN (required for TEMP_SENSOR_1) not defined for this board."
|
||||
#elif TEMP_SENSOR_1 == 0
|
||||
#error "TEMP_SENSOR_1 is required with 2 or more HOTENDS."
|
||||
#elif !PIN_EXISTS(TEMP_1)
|
||||
#elif !PIN_EXISTS(TEMP_1) && !PIN_EXISTS(MAX6675_SS2)
|
||||
#error "TEMP_1_PIN not defined for this board."
|
||||
#endif
|
||||
#if HOTENDS > 2
|
||||
|
Reference in New Issue
Block a user