Skip to content

Commit 5a862a5

Browse files
committed
Fix #3: wrong port for limit switches
1 parent 612b781 commit 5a862a5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Usage notes:
2020
* Laser mode: ON ($32)
2121
* Minimum S value: 0.0 ($31)
2222
* Maximum S value: 1.0 ($30)
23-
* Homing not tested
2423
* Hard limits not yet ported
2524
* Control inputs not yet ported (e.g. Cycle Start and Safety Door switches)
2625

grbl/config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,9 @@
660660

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

0 commit comments

Comments
 (0)