const int stepPin = 5;
const int dirPin = 8;
void setup() {
pinMode(5, OUTPUT);
pinMode(8, OUTPUT);
}
void loop() {
digitalWrite(8, HIGH);
for(int x=0; x<100; x++){
digitalWrite(5, HIGH);
delayMicroseconds(100);
digitalWrite(5, LOW);
delayMicroseconds(100);
}
delay(1000);
digitalWrite(8, LOW);
for(int x=0; x<400; x++){
digitalWrite(5, LOW);
delayMicroseconds(100);
digitalWrite(5, HIGH);
delayMicroseconds(100);
}
delay(1000);
}