Skip to content

Commit

Permalink
Fix #3: wrong port for limit switches
Browse files Browse the repository at this point in the history
  • Loading branch information
tbfleming committed Apr 8, 2017
1 parent 612b781 commit 5a862a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Usage notes:
* Laser mode: ON ($32)
* Minimum S value: 0.0 ($31)
* Maximum S value: 1.0 ($30)
* Homing not tested
* Hard limits not yet ported
* Control inputs not yet ported (e.g. Cycle Start and Safety Door switches)

Expand Down
6 changes: 3 additions & 3 deletions grbl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,9 @@

// Define homing/hard limit switch input pins and limit interrupt vectors.
// NOTE: All limit bit pins must be on the same port, but not on a port with other input pins (CONTROL).
#define LIMIT_DDR LPC_GPIO0->FIODIR
#define LIMIT_PIN LPC_GPIO0->FIOPIN
#define LIMIT_PORT LPC_GPIO0->FIOPIN
#define LIMIT_DDR LPC_GPIO1->FIODIR
#define LIMIT_PIN LPC_GPIO1->FIOPIN
#define LIMIT_PORT LPC_GPIO1->FIOPIN
#define X_LIMIT_BIT 25 // X-MIN=24, X-MAX=25
#define Y_LIMIT_BIT 27 // Y-MIN=26, Y-MAX=27
#define Z_LIMIT_BIT 29 // Z-MIN=28, Z-MAX=29
Expand Down

0 comments on commit 5a862a5

Please sign in to comment.