Perhaps one of our resident code monkeys can help, this is not the type of code operation I am used to dealing with.
The following code drives a stepper motor, I need to make it spin non stop.
void loop() {
digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction
// Makes 200 pulses for making one full cycle rotation
for(int x = 0; x < 200; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(500);
digitalWrite(stepPin,LOW);
delayMicroseconds(500);
}
翻譯年糕