Line 100... |
Line 100... |
100 |
// digitalWrite(M1, HIGH); |
100 |
// digitalWrite(M1, HIGH); |
101 |
// digitalWrite(M2, LOW); |
101 |
// digitalWrite(M2, LOW); |
102 |
digitalWrite(M3, LOW); |
102 |
digitalWrite(M3, LOW); |
103 |
digitalWrite(M4, HIGH); |
103 |
digitalWrite(M4, HIGH); |
104 |
delayMicroseconds(s); |
104 |
delayMicroseconds(s); |
105 |
if(s>1500)s-=16; |
105 |
if(s>1500)s-=50; |
106 |
} |
106 |
} |
107 |
} |
107 |
} |
108 |
else |
108 |
else |
109 |
{ |
109 |
{ |
110 |
for(n=0;n<STEPS/4;n++) |
110 |
for(n=0;n<STEPS/4;n++) |
Line 127... |
Line 127... |
127 |
digitalWrite(M1, LOW); |
127 |
digitalWrite(M1, LOW); |
128 |
digitalWrite(M2, HIGH); |
128 |
digitalWrite(M2, HIGH); |
129 |
// digitalWrite(M3, LOW); |
129 |
// digitalWrite(M3, LOW); |
130 |
// digitalWrite(M4, HIGH); |
130 |
// digitalWrite(M4, HIGH); |
131 |
delayMicroseconds(s); |
131 |
delayMicroseconds(s); |
132 |
if(s>1500)s-=16; |
132 |
if(s>1500)s-=50; |
133 |
} |
133 |
} |
134 |
} |
134 |
} |
135 |
/* |
135 |
/* |
136 |
myStepper.setSpeed(1); |
136 |
myStepper.setSpeed(1); |
137 |
myStepper.step(arg * 10); |
137 |
myStepper.step(arg * 10); |