Fix up Teensy tests, servo sanity
This commit is contained in:
parent
74a04aed55
commit
18f1af2dca
@ -607,14 +607,47 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
|
|||||||
#error "SWITCHING_NOZZLE requires exactly 2 EXTRUDERS."
|
#error "SWITCHING_NOZZLE requires exactly 2 EXTRUDERS."
|
||||||
#elif NUM_SERVOS < 1
|
#elif NUM_SERVOS < 1
|
||||||
#error "SWITCHING_NOZZLE requires NUM_SERVOS >= 1."
|
#error "SWITCHING_NOZZLE requires NUM_SERVOS >= 1."
|
||||||
|
#elif SWITCHING_NOZZLE_SERVO_NR == 0 && !PIN_EXISTS(SERVO0)
|
||||||
|
#error "SERVO0_PIN must be defined for your SWITCHING_NOZZLE."
|
||||||
|
#elif SWITCHING_NOZZLE_SERVO_NR == 1 && !PIN_EXISTS(SERVO1)
|
||||||
|
#error "SERVO1_PIN must be defined for your SWITCHING_NOZZLE."
|
||||||
|
#elif SWITCHING_NOZZLE_SERVO_NR == 2 && !PIN_EXISTS(SERVO2)
|
||||||
|
#error "SERVO2_PIN must be defined for your SWITCHING_NOZZLE."
|
||||||
|
#elif SWITCHING_NOZZLE_SERVO_NR == 3 && !PIN_EXISTS(SERVO3)
|
||||||
|
#error "SERVO3_PIN must be defined for your SWITCHING_NOZZLE."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Single Stepper Dual Extruder with switching servo
|
* Single Stepper Dual Extruder with switching servo
|
||||||
*/
|
*/
|
||||||
#if ENABLED(SWITCHING_EXTRUDER) && NUM_SERVOS < 1
|
#if ENABLED(SWITCHING_EXTRUDER)
|
||||||
#error "SWITCHING_EXTRUDER requires NUM_SERVOS >= 1."
|
#if NUM_SERVOS < 1
|
||||||
|
#error "SWITCHING_EXTRUDER requires NUM_SERVOS >= 1."
|
||||||
|
#elif SWITCHING_EXTRUDER_SERVO_NR == 0 && !PIN_EXISTS(SERVO0)
|
||||||
|
#error "SERVO0_PIN must be defined for your SWITCHING_EXTRUDER."
|
||||||
|
#elif SWITCHING_EXTRUDER_SERVO_NR == 1 && !PIN_EXISTS(SERVO1)
|
||||||
|
#error "SERVO1_PIN must be defined for your SWITCHING_EXTRUDER."
|
||||||
|
#elif SWITCHING_EXTRUDER_SERVO_NR == 2 && !PIN_EXISTS(SERVO2)
|
||||||
|
#error "SERVO2_PIN must be defined for your SWITCHING_EXTRUDER."
|
||||||
|
#elif SWITCHING_EXTRUDER_SERVO_NR == 3 && !PIN_EXISTS(SERVO3)
|
||||||
|
#error "SERVO3_PIN must be defined for your SWITCHING_EXTRUDER."
|
||||||
|
#endif
|
||||||
|
#if EXTRUDERS > 3
|
||||||
|
#if NUM_SERVOS < 2
|
||||||
|
#error "SWITCHING_EXTRUDER with 4 extruders requires NUM_SERVOS >= 2."
|
||||||
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == 0 && !PIN_EXISTS(SERVO0)
|
||||||
|
#error "SERVO0_PIN must be defined for your SWITCHING_EXTRUDER."
|
||||||
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == 1 && !PIN_EXISTS(SERVO1)
|
||||||
|
#error "SERVO1_PIN must be defined for your SWITCHING_EXTRUDER."
|
||||||
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == 2 && !PIN_EXISTS(SERVO2)
|
||||||
|
#error "SERVO2_PIN must be defined for your SWITCHING_EXTRUDER."
|
||||||
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == 3 && !PIN_EXISTS(SERVO3)
|
||||||
|
#error "SERVO3_PIN must be defined for your SWITCHING_EXTRUDER."
|
||||||
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == SWITCHING_EXTRUDER_SERVO_NR
|
||||||
|
#error "SWITCHING_EXTRUDER_E23_SERVO_NR should be a different extruder from SWITCHING_EXTRUDER_SERVO_NR."
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -139,7 +139,7 @@ D8 HEATER_BED_PIN CS1 RX4 A12 31 | 46 * * 47 | 34 A15 PWM
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ULTRA_LCD
|
#if ENABLED(ULTRA_LCD)
|
||||||
#define LCD_PINS_RS 40
|
#define LCD_PINS_RS 40
|
||||||
#define LCD_PINS_ENABLE 41
|
#define LCD_PINS_ENABLE 41
|
||||||
#define LCD_PINS_D4 42
|
#define LCD_PINS_D4 42
|
||||||
|
@ -37,17 +37,17 @@ exec_test $1 $2 "Sled Z Probe with Linear leveling"
|
|||||||
#
|
#
|
||||||
# Test a Servo Probe
|
# Test a Servo Probe
|
||||||
#
|
#
|
||||||
restore_configs
|
# restore_configs
|
||||||
opt_enable NUM_SERVOS Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
|
# opt_enable NUM_SERVOS Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
|
||||||
opt_set NUM_SERVOS 1
|
# opt_set NUM_SERVOS 1
|
||||||
opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
|
# opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
|
||||||
exec_test $1 $2 "Servo Probe"
|
# exec_test $1 $2 "Servo Probe"
|
||||||
#
|
#
|
||||||
# ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
|
# ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
|
||||||
#
|
#
|
||||||
opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
|
# opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
|
||||||
opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
|
# opt_enable_adv EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
|
||||||
exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES"
|
# exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES"
|
||||||
#
|
#
|
||||||
# Test MESH_BED_LEVELING feature, with LCD
|
# Test MESH_BED_LEVELING feature, with LCD
|
||||||
#
|
#
|
||||||
@ -64,12 +64,12 @@ exec_test $1 $2 "Mixing Extruder"
|
|||||||
#
|
#
|
||||||
# Test SWITCHING_EXTRUDER
|
# Test SWITCHING_EXTRUDER
|
||||||
#
|
#
|
||||||
restore_configs
|
# restore_configs
|
||||||
opt_set EXTRUDERS 2
|
# opt_set EXTRUDERS 2
|
||||||
opt_enable NUM_SERVOS
|
# opt_enable NUM_SERVOS
|
||||||
opt_set NUM_SERVOS 1
|
# opt_set NUM_SERVOS 1
|
||||||
opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
|
# opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
|
||||||
exec_test $1 $2 "SWITCHING_EXTRUDER"
|
# exec_test $1 $2 "SWITCHING_EXTRUDER"
|
||||||
#
|
#
|
||||||
# Enable COREXY
|
# Enable COREXY
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user