Set flags for RAMPS "type" in pins.h
This commit is contained in:
parent
223b7e473f
commit
d3b713cebc
|
@ -42,12 +42,34 @@
|
|||
#elif MB(RAMPS_OLD)
|
||||
#include "pins_RAMPS_OLD.h"
|
||||
#elif MB(RAMPS_13_EFB)
|
||||
#include "pins_RAMPS_13_EFB.h"
|
||||
#elif MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF)
|
||||
#define IS_RAMPS_EFB
|
||||
#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"
|
||||
#elif MB(RAMPS_14_EFB)
|
||||
#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_EFB
|
||||
#include "pins_RAMPS_14.h"
|
||||
#elif MB(RAMPS_14_EEB)
|
||||
#define IS_RAMPS_EEB
|
||||
#include "pins_RAMPS_14.h"
|
||||
#elif MB(RAMPS_14_EFF)
|
||||
#define IS_RAMPS_EFF
|
||||
#include "pins_RAMPS_14.h"
|
||||
#elif MB(RAMPS_14_EEF)
|
||||
#define IS_RAMPS_EEF
|
||||
#include "pins_RAMPS_14.h"
|
||||
#elif MB(RAMPS_14_SF)
|
||||
#define IS_RAMPS_SF
|
||||
#include "pins_RAMPS_14.h"
|
||||
#elif MB(GEN6)
|
||||
#include "pins_GEN6.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#define HI_VOLT_PIN_D 7
|
||||
|
||||
#include "pins_RAMPS_14_EFB.h"
|
||||
#include "pins_RAMPS_14.h"
|
||||
|
||||
#undef SDPOWER
|
||||
#define SDPOWER 1
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
#define HI_VOLT_PIN_D 7
|
||||
|
||||
#include "pins_RAMPS_14_EFB.h"
|
||||
#include "pins_RAMPS_14.h"
|
||||
|
||||
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
||||
/**
|
||||
|
|
|
@ -32,4 +32,4 @@
|
|||
|
||||
#define HI_VOLT_PIN_D 7
|
||||
|
||||
#include "pins_RAMPS_14_EFB.h"
|
||||
#include "pins_RAMPS_14.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"
|
|
@ -151,30 +151,25 @@
|
|||
#define HI_VOLT_PIN_A 10
|
||||
#endif
|
||||
|
||||
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
|
||||
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
|
||||
#define HEATER_0_PIN HI_VOLT_PIN_A
|
||||
#define FAN_PIN HI_VOLT_PIN_B
|
||||
#define HEATER_BED_PIN HI_VOLT_PIN_C
|
||||
#if EXTRUDERS == 1
|
||||
#define FAN1_PIN HI_VOLT_PIN_D
|
||||
#else
|
||||
#define HEATER_1_PIN HI_VOLT_PIN_D
|
||||
#endif
|
||||
#elif MB(RAMPS_13_EEF) || MB(RAMPS_14_EEF) // Hotend, Hotend, Fan
|
||||
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
|
||||
#define HEATER_0_PIN HI_VOLT_PIN_A
|
||||
#define HEATER_1_PIN HI_VOLT_PIN_B
|
||||
#define FAN_PIN HI_VOLT_PIN_C
|
||||
#elif MB(RAMPS_13_EEB) || MB(RAMPS_14_EEB) // Hotend, Hotend, Bed
|
||||
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
||||
#define HEATER_0_PIN HI_VOLT_PIN_A
|
||||
#define HEATER_1_PIN HI_VOLT_PIN_B
|
||||
#define HEATER_BED_PIN HI_VOLT_PIN_C
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
#elif MB(RAMPS_13_EFF) || MB(RAMPS_14_EFF) // Hotend, Fan, Fan (EFF is reversed?)
|
||||
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan (EFF is reversed?)
|
||||
#define HEATER_0_PIN HI_VOLT_PIN_C
|
||||
#define FAN_PIN HI_VOLT_PIN_B
|
||||
#define FAN1_PIN HI_VOLT_PIN_A
|
||||
#define CONTROLLERFAN_PIN -1
|
||||
#elif MB(RAMPS_13_SF) || MB(RAMPS_14_SF) // Spindle, Fan
|
||||
#elif ENABLED(IS_RAMPS_SF) // Spindle, Fan
|
||||
#define FAN_PIN HI_VOLT_PIN_C
|
||||
#else // Non-specific are "EFB" by legacy
|
||||
#define HEATER_0_PIN HI_VOLT_PIN_A
|
||||
|
|
|
@ -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"
|
|
@ -30,8 +30,9 @@
|
|||
|
||||
#define BOARD_NAME "Sainsmart"
|
||||
|
||||
#define HI_VOLT_PIN_A 9
|
||||
#define HI_VOLT_PIN_B 7 // PART FAN in front of board next to Extruder heat
|
||||
#define HI_VOLT_PIN_D 10
|
||||
#define HI_VOLT_PIN_A 9 // E
|
||||
#define HI_VOLT_PIN_B 7 // F PART FAN in front of board next to Extruder heat
|
||||
// HI_VOLT_PIN_C 8 // B
|
||||
#define HI_VOLT_PIN_D 10 // F / E
|
||||
|
||||
#include "pins_RAMPS_14_EFB.h"
|
||||
#include "pins_RAMPS_14.h"
|
||||
|
|
Loading…
Reference in a new issue