batata004:
But my question remains: what does the number inside delayMicroseconds(x) means? In this thread some of you said you are using X = 500, others sayins are using X = 800.
This is an extract from my code in Simple Stepper Code. Please study the full program to see the context.
for(int n = 0; n < numberOfSteps; n++) {
digitalWrite(stepPin, HIGH);
delayMicroseconds(pulseWidthMicros); // this line is probably unnecessary
digitalWrite(stepPin, LOW);
delay(millisbetweenSteps);
digitalWrite(ledPin, !digitalRead(ledPin));
}
I hope the variable names are self-explanatory.
If not, please let me know what you don't understand.
...R