diff --git a/Marlin/pins.h b/Marlin/pins.h index c4ec4125d..a62a81f86 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -38,11 +38,9 @@ #elif MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF) #include "pins_RAMPS_13.h" #elif MB(RAMPS_14_EFB) - #define IS_RAMPS_14 - #include "pins_RAMPS_13_EFB.h" + #include "pins_RAMPS_14_EFB.h" #elif MB(RAMPS_14_EEB) || MB(RAMPS_14_EFF) || MB(RAMPS_14_EEF) || MB(RAMPS_14_SF) - #define IS_RAMPS_14 - #include "pins_RAMPS_13.h" + #include "pins_RAMPS_14.h" #elif MB(GEN6) #include "pins_GEN6.h" #elif MB(GEN6_DELUXE) @@ -114,7 +112,7 @@ #elif MB(LEAPFROG) #include "pins_LEAPFROG.h" #elif MB(BAM_DICE) - #include "pins_RAMPS_13.h" + #include "pins_RAMPS_14.h" #elif MB(BAM_DICE_DUE) #include "pins_BAM_DICE_DUE.h" #elif MB(FELIX2) diff --git a/Marlin/pins_RAMPS_13.h b/Marlin/pins_RAMPS_13.h new file mode 100644 index 000000000..fafb32db3 --- /dev/null +++ b/Marlin/pins_RAMPS_13.h @@ -0,0 +1,16 @@ +/** + * Arduino Mega with RAMPS v1.3 pin assignments + * + * Applies to the following boards: + * + * RAMPS_13_EFB (Extruder, Fan, Bed) + * RAMPS_13_EEB (Extruder, Extruder, Bed) + * RAMPS_13_EFF (Extruder, Fan, Fan) + * RAMPS_13_EEF (Extruder, Extruder, Fan) + * RAMPS_13_SF (Spindle, Controller Fan) + * + */ + +#define IS_RAMPS_13 + +#include "pins_RAMPS_14.h" diff --git a/Marlin/pins_RAMPS_13_EFB.h b/Marlin/pins_RAMPS_13_EFB.h new file mode 100644 index 000000000..308f2999f --- /dev/null +++ b/Marlin/pins_RAMPS_13_EFB.h @@ -0,0 +1,9 @@ +/** + * Arduino Mega with RAMPS v1.3 pin assignments + * + * RAMPS_13_EFB (Extruder, Fan, Bed) + */ + +#define IS_RAMPS_13 + +#include "pins_RAMPS_14_EFB.h" diff --git a/Marlin/pins_RAMPS_14.h b/Marlin/pins_RAMPS_14.h index be6fcd213..bee34f102 100644 --- a/Marlin/pins_RAMPS_14.h +++ b/Marlin/pins_RAMPS_14.h @@ -85,12 +85,12 @@ #define FILRUNOUT_PIN 4 #endif -#if MB(RAMPS_13_EFF) || ENABLED(IS_RAMPS_EFB) +#if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) || ENABLED(IS_RAMPS_EFB) #define FAN_PIN 9 // (Sprinter config) - #if MB(RAMPS_13_EFF) + #if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) #define CONTROLLERFAN_PIN -1 // Pin used for the fan to cool controller #endif -#elif MB(RAMPS_13_EEF) || MB(RAMPS_13_SF) +#elif MB(RAMPS_14_EEF) || MB(RAMPS_14_SF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF) #define FAN_PIN 8 #else #define FAN_PIN 4 // IO pin. Buffer needed @@ -102,13 +102,13 @@ #define KILL_PIN 41 #endif -#if MB(RAMPS_13_EFF) +#if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) #define HEATER_0_PIN 8 #else #define HEATER_0_PIN 10 // EXTRUDER 1 #endif -#if MB(RAMPS_13_SF) || ENABLED(IS_RAMPS_EFB) +#if MB(RAMPS_14_SF) || MB(RAMPS_13_SF) || ENABLED(IS_RAMPS_EFB) #define HEATER_1_PIN -1 #else #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter) @@ -120,7 +120,7 @@ #define TEMP_1_PIN 15 // ANALOG NUMBERING #define TEMP_2_PIN -1 // ANALOG NUMBERING -#if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF) +#if MB(RAMPS_14_EFF) || MB(RAMPS_14_EEF) || MB(RAMPS_14_SF) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF) #define HEATER_BED_PIN -1 // NO BED #else #define HEATER_BED_PIN 8 // BED