|
@@ -556,11 +556,13 @@ int Atm_AccelStepper::limitHigh_avg(bool limistate){
|
|
Atm_AccelStepper& Atm_AccelStepper::setEnablePin( int enablePin ){
|
|
Atm_AccelStepper& Atm_AccelStepper::setEnablePin( int enablePin ){
|
|
_enablePin = enablePin ;
|
|
_enablePin = enablePin ;
|
|
pinMode(_enablePin, OUTPUT);
|
|
pinMode(_enablePin, OUTPUT);
|
|
|
|
+ stepper->setEnablePin(_enablePin);
|
|
return *this;
|
|
return *this;
|
|
}
|
|
}
|
|
|
|
|
|
Atm_AccelStepper& Atm_AccelStepper::pinReversed( bool directionInvert,
|
|
Atm_AccelStepper& Atm_AccelStepper::pinReversed( bool directionInvert,
|
|
bool stepInvert, bool enableInvert){
|
|
bool stepInvert, bool enableInvert){
|
|
|
|
+ _enableReversed = enableInvert ;
|
|
stepper->setPinsInverted(directionInvert, stepInvert, enableInvert);
|
|
stepper->setPinsInverted(directionInvert, stepInvert, enableInvert);
|
|
return *this;
|
|
return *this;
|
|
}
|
|
}
|