Skip to content

Commit

Permalink
Merge pull request #37 from meeuw/I31
Browse files Browse the repository at this point in the history
I31
  • Loading branch information
Makeblock-official committed Jul 22, 2015
2 parents 6f2d54f + faa7334 commit db1454b
Show file tree
Hide file tree
Showing 5 changed files with 53,183 additions and 53,211 deletions.
8 changes: 4 additions & 4 deletions firmwares/xybot/xybot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ void prepareMove()
void goHome()
{
// stop on either endstop touches
while(digitalRead(ylimit_pin2)==1 && digitalRead(ylimit_pin1)==1){
stepperMoveB(-motorBfw);
while(digitalRead(xlimit_pin2)==1 && digitalRead(xlimit_pin1)==1){
stepperMoveB(motorBbk);
delayMicroseconds(stepdelay_min);
}
while(digitalRead(xlimit_pin2)==1 && digitalRead(xlimit_pin1)==1){
stepperMoveA(-motorAfw);
while(digitalRead(ylimit_pin2)==1 && digitalRead(ylimit_pin1)==1){
stepperMoveA(motorAbk);
delayMicroseconds(stepdelay_min);
}
posA = 0;
Expand Down
Loading

0 comments on commit db1454b

Please sign in to comment.