From 5a862a5e3092dc374ff23824753c9224469f771a Mon Sep 17 00:00:00 2001 From: Todd Fleming Date: Sat, 8 Apr 2017 14:57:31 -0400 Subject: [PATCH] Fix #3: wrong port for limit switches --- README.md | 1 - grbl/config.h | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c60c9fd..54ff2e5 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/grbl/config.h b/grbl/config.h index 30f7817..02121e2 100644 --- a/grbl/config.h +++ b/grbl/config.h @@ -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