adjusting pun number for motor X2
parent
ccb2570634
commit
ed620c0ce8
|
@ -85,7 +85,7 @@ StepperControl::StepperControl() {
|
|||
axisY.label = 'Y';
|
||||
axisZ.label = 'Z';
|
||||
|
||||
axisX.loadPinNumbers(X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, 0, 0, 0);
|
||||
axisX.loadPinNumbers(X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, E_STEP_PIN, E_DIR_PIN, E_ENABLE_PIN);
|
||||
axisY.loadPinNumbers(Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, 0, 0, 0);
|
||||
axisZ.loadPinNumbers(Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, 0, 0, 0);
|
||||
|
||||
|
|
|
@ -352,9 +352,9 @@ void StepperControlAxis::setDirectionUp() {
|
|||
}
|
||||
|
||||
if (motorMotor2Enl && motorMotor2Inv) {
|
||||
digitalWrite(pinDirection, LOW);
|
||||
digitalWrite(pin2Direction, LOW);
|
||||
} else {
|
||||
digitalWrite(pinDirection, HIGH);
|
||||
digitalWrite(pin2Direction, HIGH);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue