Use limit switch overrides

This commit is contained in:
Scott Lahteine 2019-06-05 21:32:10 -05:00
parent 34d2801bbe
commit 9206c0e869
9 changed files with 90 additions and 90 deletions

View File

@ -37,16 +37,14 @@
#endif
#define BOARD_NAME "Azteeg X3"
#include "pins_RAMPS_13.h"
//
// Servos
//
#undef SERVO0_PIN
#undef SERVO1_PIN
#define SERVO0_PIN 44 // SERVO1 port
#define SERVO1_PIN 55 // SERVO2 port
#include "pins_RAMPS_13.h"
//
// LCD / Controller
//

View File

@ -37,14 +37,33 @@
//
// RAMPS pins overrides
//
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
#define CASE_LIGHT_PIN 44
#endif
//
// Servos
//
// Tested this pin with bed leveling on a Delta with 1 servo.
// Physical wire attachment on EXT1: GND, 5V, D47.
//
#define SERVO0_PIN 47
//
// Limit Switches
//
#define X_STOP_PIN 3
#define Y_STOP_PIN 14
#define Z_STOP_PIN 18
#ifndef FAN_PIN
#define FAN_PIN 6
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
#define CASE_LIGHT_PIN 44
#endif
//
// Import RAMPS 1.4 pins
//
#include "pins_RAMPS.h"
// DIGIPOT slave addresses
@ -55,37 +74,6 @@
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
#endif
//
// Servos
//
// Tested this pin with bed leveling on a Delta with 1 servo.
// Physical wire attachment on EXT1: GND, 5V, D47.
//
#undef SERVO0_PIN
#define SERVO0_PIN 47
//
// Limit Switches
//
// Swap the MIN and MAX endstop pins because the X3 Pro comes with only
// MIN endstop pin headers soldered onto the board.
//
#if ENABLED(DELTA)
#undef X_MIN_PIN
#undef X_MAX_PIN
#undef Y_MIN_PIN
#undef Y_MAX_PIN
#undef Z_MIN_PIN
#undef Z_MAX_PIN
#define X_MIN_PIN 2
#define X_MAX_PIN 3
#define Y_MIN_PIN 15
#define Y_MAX_PIN 14
#define Z_MIN_PIN 19
#define Z_MAX_PIN 18
#endif
//
// Z Probe (when not Z_MIN_PIN)
//

View File

@ -53,14 +53,16 @@
#define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
#define SPINDLE_DIR_PIN 42
#include "pins_RAMPS_13.h"
//
// Limit Switches
//
#undef X_MAX_PIN
#define X_MAX_PIN 79 // 2
//
// Import RAMPS 1.3 pins
//
#include "pins_RAMPS_13.h"
//
// Z Probe (when not Z_MIN_PIN)
//

View File

@ -40,12 +40,30 @@
//
// Limit Switches
//
#define X_MIN_PIN 24
#define X_MAX_PIN 22
#define Y_MIN_PIN 28
#define Y_MAX_PIN 26
#define Z_MIN_PIN 30
#define Z_MAX_PIN 32
#ifndef X_STOP_PIN
#ifndef X_MIN_PIN
#define X_MIN_PIN 24
#endif
#ifndef X_MAX_PIN
#define X_MAX_PIN 22
#endif
#endif
#ifndef Y_STOP_PIN
#ifndef Y_MIN_PIN
#define Y_MIN_PIN 28
#endif
#ifndef Y_MAX_PIN
#define Y_MAX_PIN 26
#endif
#endif
#ifndef Z_STOP_PIN
#ifndef Z_MIN_PIN
#define Z_MIN_PIN 30
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN 32
#endif
#endif
//
// Z Probe (when not Z_MIN_PIN)

View File

@ -26,16 +26,9 @@
#define BOARD_NAME "GT2560 V3.0 (MC2)"
#include "pins_GT2560_V3.h"
#undef X_MIN_PIN
#define X_MIN_PIN 22
#undef X_MAX_PIN
#define X_MAX_PIN 24
#undef Y_MIN_PIN
#define Y_MIN_PIN 26
#undef Y_MAX_PIN
#define Y_MAX_PIN 28
#include "pins_GT2560_V3.h"

View File

@ -45,13 +45,12 @@
#undef LCD_PINS_D5
#undef LCD_PINS_D6
#undef LCD_PINS_D7
#undef FIL_RUNOUT_PIN
#undef FIL_RUNOUT_PIN // Uses Beeper/LED Pin Pulled to GND
#define LCD_SDSS 31 // Smart Controller SD card reader (rather than the Melzi)
#define LCD_PINS_RS 28 // ST9720 CS
#define LCD_PINS_ENABLE 17 // ST9720 DAT
#define LCD_PINS_D4 30 // ST9720 CLK
#define FIL_RUNOUT_PIN -1 // Uses Beeper/LED Pin Pulled to GND
#if DISABLED(SPEAKER) && ENABLED(BLTOUCH)
#define SERVO0_PIN 27

View File

@ -83,23 +83,29 @@
//
// Limit Switches
//
#ifndef X_MIN_PIN
#define X_MIN_PIN 3
#ifndef X_STOP_PIN
#ifndef X_MIN_PIN
#define X_MIN_PIN 3
#endif
#ifndef X_MAX_PIN
#define X_MAX_PIN 2
#endif
#endif
#ifndef X_MAX_PIN
#define X_MAX_PIN 2
#ifndef Y_STOP_PIN
#ifndef Y_MIN_PIN
#define Y_MIN_PIN 14
#endif
#ifndef Y_MAX_PIN
#define Y_MAX_PIN 15
#endif
#endif
#ifndef Y_MIN_PIN
#define Y_MIN_PIN 14
#endif
#ifndef Y_MAX_PIN
#define Y_MAX_PIN 15
#endif
#ifndef Z_MIN_PIN
#define Z_MIN_PIN 18
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN 19
#ifndef Z_STOP_PIN
#ifndef Z_MIN_PIN
#define Z_MIN_PIN 18
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN 19
#endif
#endif
//

View File

@ -26,20 +26,14 @@
#define BOARD_NAME "Dagoma3D F5 RAMPS"
#ifdef E0_AUTO_FAN_PIN
#undef E0_AUTO_FAN_PIN
#endif
#define X_STOP_PIN 2
#define Y_STOP_PIN 3
#define Z_STOP_PIN 15
#define FIL_RUNOUT_PIN 39
#define E0_AUTO_FAN_PIN 7
#define X_MAX_PIN -1
#define X_MIN_PIN 2
#define Y_MAX_PIN 3
#define Y_MIN_MIN -1
#define Z_MAX_PIN -1
#define Z_MIN_PIN 15
#define FILRUNOUT_PIN 39
#define MOSFET_D_PIN -1
#define ORIG_E0_AUTO_FAN_PIN 7
//
// Import RAMPS 1.4 pins
//
#include "pins_RAMPS.h"

View File

@ -34,14 +34,16 @@
#define BOARD_NAME "TRONXY-V3-1.0"
#include "pins_RAMPS.h"
//
// Servos
//
#undef SERVO1_PIN
#define SERVO1_PIN 12 // 2560 PIN 25/PB6
//
// Import RAMPS 1.4 pins
//
#include "pins_RAMPS.h"
/**
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*