- Code: Select all
delay(uspers/1000); // in ms
steppingcounter += (uspers % 1000);
if (steppingcounter >= 1000) {
delay(1);
steppingcounter -= 1000;
}
Why do all this instead of delayMicroseconds(uspers); ?
2) The line in onestep()...
- Code: Select all
// next determine what sort of stepping procedure we're up to
...is followed by some if else if for each style, but then it gets to microstepping and it looks like someone forgot to put the else in front of the if. Am I reading that right?
3) Can you please iluminate what's going on with the 4 PWMs and microstepping? There's no comment in the code to explain. I'd really like to free up a timer on the Arduino. I'm only using steppers in full step mode. Can I rip out all the microstepping and free one of the Arduino timers? I should still have use of the servo PWM, correct?
Thank you very much!

