Stepper.ino

v1
Agis Zisimatos 2014-04-19 19:11:59 +03:00
parent be23c9ed43
commit 02e8b13283
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ void stepper_move()
{
digitalWrite(DIR_AZ, HIGH);
digitalWrite(STEP_AZ, HIGH);
stepPosAz++;
stepPosAz++;
stepAz--;
}
else if(stepAz<0)
@ -14,6 +14,10 @@ void stepper_move()
stepPosAz--;
stepAz++;
}
if (stepPosAz > SPD*60)
stepPosAz = 0;
else if (stepPosAz < 0)
stepPosAz = SPD*60;
if(stepEl>0)
{