#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)
#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 165,60} // X,Y,Z Axis Extend and Retract angles
将NUM_SERVOS 改为1
#define NUM_SERVOS 1 // Servo index starts with 0 for M280 command
将Marlin 烧入RAMPS
烧录完毕后,舵机臂会转动到60度的位置。
使用M code "M280 P0 S angle" (angle就改成需要转动的角度)可以控制舵机臂转动到指定的位置(例如M280 P0 S60),找出探测时应该要在几度,收起探针应该要几度。假设找出来的度数分别是165度跟60度。