int EN = 7; int STEP = 6; int DIR = 5; void setup(){ pinMode(EN, OUTPUT); pinMode(STEP, OUTPUT); pinMode(DIR, OUTPUT); } void loop(){ digitalWrite(DIR, LOW); for(int x = 0; x < 10; x++){ digitalWrite(STEP, HIGH); delay(10); } delay(400); digitalWrite(DIR, HIGH); for(int x = 0; x < 10; x++){ delay(10); digitalWrite(STEP, LOW); delay(10); } delay(400); }