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