void initSteppers() { leftStepper.setSpeed(motorSpeed); rightStepper.setSpeed(motorSpeed); leftStepper.setAcceleration(motorAccel); rightStepper.setAcceleration(motorAccel); // Timer3.getAvailable().attachInterrupt(processSteppers).setPeriod(10).start(); }
void setAcceleration(int desiredAcceleration) { leftStepper.setAcceleration(desiredAcceleration); rightStepper.setAcceleration(desiredAcceleration); }