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