Merge pull request #4463 from thinkyhead/rc_azteeg_x3_eeb

Wrangle RAMPS variants and derivatives
2.0.x
Scott Lahteine 8 years ago committed by GitHub
commit 4bf3526d00

@ -56,11 +56,11 @@ before_script:
# #
script: script:
# #
# Backup Configuration.h, Configuration_adv.h, and pins_RAMPS_14.h # Backup Configuration.h, Configuration_adv.h, and pins_RAMPS.h
# #
- cp Marlin/Configuration.h Marlin/Configuration.h.backup - cp Marlin/Configuration.h Marlin/Configuration.h.backup
- cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup - cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
- cp Marlin/pins_RAMPS_14.h Marlin/pins_RAMPS_14.h.backup - cp Marlin/pins_RAMPS.h Marlin/pins_RAMPS.h.backup
# #
# Build with the default configurations # Build with the default configurations
# #
@ -221,7 +221,7 @@ script:
# #
- restore_configs - restore_configs
- opt_enable_adv Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS - opt_enable_adv Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS
- pins_set RAMPS_14 X_MAX_PIN -1 - pins_set RAMPS X_MAX_PIN -1
- opt_set_adv Z2_MAX_PIN 2 - opt_set_adv Z2_MAX_PIN 2
- build_marlin - build_marlin
# #

@ -939,7 +939,7 @@ void setup() {
dac_init(); dac_init();
#endif #endif
#if ENABLED(Z_PROBE_SLED) #if ENABLED(Z_PROBE_SLED) && PIN_EXISTS(SLED)
pinMode(SLED_PIN, OUTPUT); pinMode(SLED_PIN, OUTPUT);
digitalWrite(SLED_PIN, LOW); // turn it off digitalWrite(SLED_PIN, LOW); // turn it off
#endif // Z_PROBE_SLED #endif // Z_PROBE_SLED
@ -1856,8 +1856,10 @@ static void clean_up_after_endstop_or_probe_move() {
// Dock sled a bit closer to ensure proper capturing // Dock sled a bit closer to ensure proper capturing
do_blocking_move_to_x(X_MAX_POS + SLED_DOCKING_OFFSET - ((stow) ? 1 : 0)); do_blocking_move_to_x(X_MAX_POS + SLED_DOCKING_OFFSET - ((stow) ? 1 : 0));
digitalWrite(SLED_PIN, !stow); // switch solenoid
#if PIN_EXISTS(SLED)
digitalWrite(SLED_PIN, !stow); // switch solenoid
#endif
} }
#endif // Z_PROBE_SLED #endif // Z_PROBE_SLED

@ -42,13 +42,35 @@
#elif MB(RAMPS_OLD) #elif MB(RAMPS_OLD)
#include "pins_RAMPS_OLD.h" #include "pins_RAMPS_OLD.h"
#elif MB(RAMPS_13_EFB) #elif MB(RAMPS_13_EFB)
#include "pins_RAMPS_13_EFB.h" #define IS_RAMPS_EFB
#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_13_EEB)
#define IS_RAMPS_EEB
#include "pins_RAMPS_13.h"
#elif MB(RAMPS_13_EFF)
#define IS_RAMPS_EFF
#include "pins_RAMPS_13.h"
#elif MB(RAMPS_13_EEF)
#define IS_RAMPS_EEF
#include "pins_RAMPS_13.h"
#elif MB(RAMPS_13_SF)
#define IS_RAMPS_SF
#include "pins_RAMPS_13.h" #include "pins_RAMPS_13.h"
#elif MB(RAMPS_14_EFB) #elif MB(RAMPS_14_EFB)
#include "pins_RAMPS_14_EFB.h" #define IS_RAMPS_EFB
#elif MB(RAMPS_14_EEB) || MB(RAMPS_14_EFF) || MB(RAMPS_14_EEF) || MB(RAMPS_14_SF) #include "pins_RAMPS.h"
#include "pins_RAMPS_14.h" #elif MB(RAMPS_14_EEB)
#define IS_RAMPS_EEB
#include "pins_RAMPS.h"
#elif MB(RAMPS_14_EFF)
#define IS_RAMPS_EFF
#include "pins_RAMPS.h"
#elif MB(RAMPS_14_EEF)
#define IS_RAMPS_EEF
#include "pins_RAMPS.h"
#elif MB(RAMPS_14_SF)
#define IS_RAMPS_SF
#include "pins_RAMPS.h"
#elif MB(GEN6) #elif MB(GEN6)
#include "pins_GEN6.h" #include "pins_GEN6.h"
#elif MB(GEN6_DELUXE) #elif MB(GEN6_DELUXE)
@ -124,7 +146,7 @@
#elif MB(LEAPFROG) #elif MB(LEAPFROG)
#include "pins_LEAPFROG.h" #include "pins_LEAPFROG.h"
#elif MB(BAM_DICE) #elif MB(BAM_DICE)
#include "pins_RAMPS_14.h" #include "pins_RAMPS.h"
#elif MB(BAM_DICE_DUE) #elif MB(BAM_DICE_DUE)
#include "pins_BAM_DICE_DUE.h" #include "pins_BAM_DICE_DUE.h"
#elif MB(FELIX2) #elif MB(FELIX2)

@ -36,7 +36,7 @@
#define DEFAULT_SOURCE_CODE_URL "http://3dprint.elettronicain.it/" #define DEFAULT_SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
#endif #endif
#include "pins_RAMPS_14.h" #include "pins_RAMPS.h"
#undef Z_ENABLE_PIN #undef Z_ENABLE_PIN
#define Z_ENABLE_PIN 63 #define Z_ENABLE_PIN 63

@ -24,9 +24,13 @@
* AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments * AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
*/ */
#if HOTENDS > 2
#error "Azteeg X3 supports up to 2 hotends. Comment this line to keep going."
#endif
#define BOARD_NAME "Azteeg X3" #define BOARD_NAME "Azteeg X3"
#include "pins_RAMPS_14_EFB.h" #include "pins_RAMPS.h"
#if ENABLED(VIKI2) || ENABLED(miniVIKI) #if ENABLED(VIKI2) || ENABLED(miniVIKI)

@ -26,7 +26,7 @@
#define BOARD_NAME "Azteeg X3 Pro" #define BOARD_NAME "Azteeg X3 Pro"
#include "pins_RAMPS_14.h" #include "pins_RAMPS.h"
#undef FAN_PIN #undef FAN_PIN
#define FAN_PIN 6 //Part Cooling System #define FAN_PIN 6 //Part Cooling System

@ -24,9 +24,13 @@
* BAM&DICE Due (Arduino Mega) pin assignments * BAM&DICE Due (Arduino Mega) pin assignments
*/ */
#if HOTENDS > 2
#error "2PrintBeta Due supports up to 2 hotends. Comment this line to keep going."
#endif
#define BOARD_NAME "2PrintBeta Due" #define BOARD_NAME "2PrintBeta Due"
#include "pins_RAMPS_14_EFB.h" #include "pins_RAMPS.h"
#undef TEMP_0_PIN #undef TEMP_0_PIN
#undef TEMP_1_PIN #undef TEMP_1_PIN

@ -24,12 +24,15 @@
* FELIXprinters v2.0/3.0 (RAMPS v1.4) pin assignments * FELIXprinters v2.0/3.0 (RAMPS v1.4) pin assignments
*/ */
#if HOTENDS > 2
#error "Felix 2.0+ supports up to 2 hotends. Comment this line to keep going."
#endif
#define BOARD_NAME "Felix 2.0+" #define BOARD_NAME "Felix 2.0+"
#include "pins_RAMPS_14_EFB.h" #define MOSFET_D_PIN 7
#undef HEATER_1_PIN #include "pins_RAMPS.h"
#define HEATER_1_PIN 7 // EXTRUDER 2
#undef SDPOWER #undef SDPOWER
#define SDPOWER 1 #define SDPOWER 1

@ -29,12 +29,15 @@
* MKS v1.4 (Extruder, Extruder, Fan, Bed) * MKS v1.4 (Extruder, Extruder, Fan, Bed)
*/ */
#if HOTENDS > 2
#error "MKS 1.3/1.4 supports up to 2 hotends. Comment this line to keep going."
#endif
#define BOARD_NAME "MKS > v1.3" #define BOARD_NAME "MKS > v1.3"
#include "pins_RAMPS_14_EFB.h" #define MOSFET_D_PIN 7
#undef HEATER_1_PIN #include "pins_RAMPS.h"
#define HEATER_1_PIN 7 // EXTRUDER 2 (-1 on RAMPS 1.4)
#if ENABLED(VIKI2) || ENABLED(miniVIKI) #if ENABLED(VIKI2) || ENABLED(miniVIKI)
/** /**

@ -24,9 +24,12 @@
* MKS BASE 1.0 Arduino Mega2560 with RAMPS v1.4 pin assignments * MKS BASE 1.0 Arduino Mega2560 with RAMPS v1.4 pin assignments
*/ */
#if HOTENDS > 2
#error "MKS BASE 1.0 supports up to 2 hotends. Comment this line to keep going."
#endif
#define BOARD_NAME "MKS BASE 1.0" #define BOARD_NAME "MKS BASE 1.0"
#include "pins_RAMPS_14_EFB.h" #define MOSFET_D_PIN 7
#undef HEATER_1_PIN #include "pins_RAMPS.h"
#define HEATER_1_PIN 7

@ -105,40 +105,87 @@
// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
#define FIL_RUNOUT_PIN 4 #define FIL_RUNOUT_PIN 4
#if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) || ENABLED(IS_RAMPS_EFB) #define PS_ON_PIN 12
#define FAN_PIN 9 // (Sprinter config) #define TEMP_0_PIN 13 // ANALOG NUMBERING
#if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) #define TEMP_1_PIN 15 // ANALOG NUMBERING
#define CONTROLLERFAN_PIN -1 // Pin used for the fan to cool controller #define TEMP_BED_PIN 14 // ANALOG NUMBERING
#endif
#elif MB(RAMPS_14_EEF) || MB(RAMPS_14_SF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF) #if ENABLED(Z_PROBE_SLED)
#define FAN_PIN 8 #define SLED_PIN -1
#else
#define FAN_PIN 4 // IO pin. Buffer needed
#endif #endif
#define PS_ON_PIN 12 /*
#if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) // Augmentation for auto-assigning RAMPS plugs
#define HEATER_0_PIN 8
#else #if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF)
#define HEATER_0_PIN 10 // EXTRUDER 1 #if HOTENDS > 1
#if !MB(RAMPS_14_EEF) && !MB(RAMPS_13_EEF) && !MB(RAMPS_14_SF) && !MB(RAMPS_13_SF) #if TEMP_SENSOR_BED
#define HEATER_BED_PIN 8 // BED #define IS_RAMPS_EEB
#else
#define IS_RAMPS_EEF
#endif
#elif TEMP_SENSOR_BED
#define IS_RAMPS_EFB
#else
#define IS_RAMPS_EFF
#endif #endif
#endif #endif
#if !MB(RAMPS_14_SF) && !MB(RAMPS_13_SF) && !ENABLED(IS_RAMPS_EFB) */
#define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
/**
* Hi Voltage PWM Pin Assignments
*/
#ifndef MOSFET_D_PIN
#define MOSFET_D_PIN -1
#endif
#ifndef RAMPS_D8_PIN
#define RAMPS_D8_PIN 8
#endif
#ifndef RAMPS_D9_PIN
#define RAMPS_D9_PIN 9
#endif
#ifndef RAMPS_D10_PIN
#define RAMPS_D10_PIN 10
#endif #endif
#define TEMP_0_PIN 13 // ANALOG NUMBERING #define HEATER_0_PIN RAMPS_D10_PIN
#define TEMP_1_PIN 15 // ANALOG NUMBERING
#define TEMP_BED_PIN 14 // ANALOG NUMBERING #if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
#define FAN_PIN RAMPS_D9_PIN
#define HEATER_BED_PIN RAMPS_D8_PIN
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
#define HEATER_1_PIN RAMPS_D9_PIN
#define FAN_PIN RAMPS_D8_PIN
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
#define HEATER_1_PIN RAMPS_D9_PIN
#define HEATER_BED_PIN RAMPS_D8_PIN
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
#define FAN_PIN RAMPS_D9_PIN
#define FAN1_PIN RAMPS_D8_PIN
#define CONTROLLERFAN_PIN -1
#elif ENABLED(IS_RAMPS_SF) // Spindle, Fan
#define FAN_PIN RAMPS_D8_PIN
#else // Non-specific are "EFB" by legacy
#define FAN_PIN RAMPS_D9_PIN
#define HEATER_BED_PIN RAMPS_D8_PIN
#if HOTENDS == 1
#define FAN1_PIN MOSFET_D_PIN
#else
#define HEATER_1_PIN MOSFET_D_PIN
#endif
#endif
#if ENABLED(Z_PROBE_SLED) #ifndef FAN_PIN
#define SLED_PIN -1 #define FAN_PIN 4 // IO pin. Buffer needed
#endif #endif
/**
* LCD Controller Pin Assignments
*/
#if ENABLED(ULTRA_LCD) #if ENABLED(ULTRA_LCD)
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD) #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
@ -301,4 +348,3 @@
#else #else
#define MAX6675_SS 66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present #define MAX6675_SS 66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
#endif #endif

@ -38,4 +38,4 @@
#endif #endif
#define IS_RAMPS_13 #define IS_RAMPS_13
#include "pins_RAMPS_14.h" #include "pins_RAMPS.h"

@ -1,32 +0,0 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* Arduino Mega with RAMPS v1.3 pin assignments
*
* RAMPS_13_EFB (Extruder, Fan, Bed)
*/
#define BOARD_NAME "RAMPS 1.3 EFB"
#define IS_RAMPS_13
#include "pins_RAMPS_14_EFB.h"

@ -1,34 +0,0 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* Arduino Mega with RAMPS v1.4 pin assignments
*
* RAMPS_14_EFB (Extruder, Fan, Bed)
*/
#ifndef BOARD_NAME
#define BOARD_NAME "RAMPS 1.4 EFB"
#endif
#define IS_RAMPS_EFB
#include "pins_RAMPS_14.h"

@ -24,7 +24,7 @@
* RIGIDBOARD Arduino Mega with RAMPS v1.4 pin assignments * RIGIDBOARD Arduino Mega with RAMPS v1.4 pin assignments
*/ */
#include "pins_RAMPS_14.h" #include "pins_RAMPS.h"
#undef BOARD_NAME #undef BOARD_NAME
#define BOARD_NAME "RigidBoard" #define BOARD_NAME "RigidBoard"

@ -24,16 +24,15 @@
* Sainsmart 2-in-1 pin assignments * Sainsmart 2-in-1 pin assignments
*/ */
#include "pins_RAMPS_14_EFB.h" #if HOTENDS > 2
#error "Sainsmart 2-in-1 supports up to 2 hotends. Comment this line to keep going."
#endif
#undef BOARD_NAME #define BOARD_NAME "Sainsmart"
#define BOARD_NAME "Sainsmart"
#undef FAN_PIN #define RAMPS_D10_PIN 9 // E
#define FAN_PIN 7 // PART FAN in front of board next to Extruder heat #define RAMPS_D9_PIN 7 // F PART FAN in front of board next to Extruder heat
// RAMPS_D8_PIN 8 // B
#define MOSFET_D_PIN 10 // F / E
#undef HEATER_0_PIN #include "pins_RAMPS.h"
#define HEATER_0_PIN 9 // EXTRUDER 1
#undef HEATER_1_PIN
#define HEATER_1_PIN 10 // EXTRUDER 2

Loading…
Cancel
Save