From bbcb61e0422e30a5427198a431f655b38665e41b Mon Sep 17 00:00:00 2001 From: InsanityAutomation Date: Mon, 3 Jun 2019 23:49:19 -0400 Subject: [PATCH] Initial Commit - Add board --- Marlin/src/core/boards.h | 1 + Marlin/src/pins/pins.h | 2 ++ Marlin/src/pins/pins_RAMPS.h | 28 +++++++++++++----- Marlin/src/pins/pins_RAMPS_Dagoma.h | 45 +++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+), 7 deletions(-) create mode 100644 Marlin/src/pins/pins_RAMPS_Dagoma.h diff --git a/Marlin/src/core/boards.h b/Marlin/src/core/boards.h index 4a7fb642b..fd9092e56 100644 --- a/Marlin/src/core/boards.h +++ b/Marlin/src/core/boards.h @@ -86,6 +86,7 @@ #define BOARD_TRIGORILLA_14 443 // TriGorilla Anycubic version 1.4 based on RAMPS EFB #define BOARD_RAMPS_ENDER_4 243 // Creality: Ender-4, CR-8 #define BOARD_RAMPS_CREALITY 244 // Creality: CR10S, CR20, CR-X +#define BOARD_RAMPS_Dagoma 245 // Dagoma F5 #define BOARD_FYSETC_F6_13 541 // Fysetc F6 #define BOARD_DUPLICATOR_I3_PLUS 31 // Wanhao Duplicator i3 Plus #define BOARD_VORON 441 // VORON Design diff --git a/Marlin/src/pins/pins.h b/Marlin/src/pins/pins.h index 1c346b237..a21b1e121 100644 --- a/Marlin/src/pins/pins.h +++ b/Marlin/src/pins/pins.h @@ -160,6 +160,8 @@ #include "pins_RAMPS_ENDER_4.h" // ATmega2560 env:megaatmega2560 #elif MB(RAMPS_CREALITY) #include "pins_RAMPS_CREALITY.h" // ATmega2560 env:megaatmega2560 +#elif MB(RAMPS_Dagoma) + #include "pins_RAMPS_Dagoma.h" // ATmega2560 env:megaatmega2560 #elif MB(FYSETC_F6_13) #include "pins_FYSETC_F6_13.h" // ATmega2560 env:fysetc_f6_13 #elif MB(DUPLICATOR_I3_PLUS) diff --git a/Marlin/src/pins/pins_RAMPS.h b/Marlin/src/pins/pins_RAMPS.h index 88249ada3..7c50d4aa7 100644 --- a/Marlin/src/pins/pins_RAMPS.h +++ b/Marlin/src/pins/pins_RAMPS.h @@ -70,8 +70,12 @@ #define SERVO0_PIN 11 #endif #endif -#define SERVO1_PIN 6 -#define SERVO2_PIN 5 +#ifndef SERVO1_PIN + #define SERVO1_PIN 6 +#endif +#ifndef SERVO2_PIN + #define SERVO2_PIN 5 +#endif #ifndef SERVO3_PIN #define SERVO3_PIN 4 #endif @@ -79,14 +83,24 @@ // // Limit Switches // -#define X_MIN_PIN 3 +#ifndef X_MIN_PIN + #define X_MIN_PIN 3 +#endif #ifndef X_MAX_PIN #define X_MAX_PIN 2 #endif -#define Y_MIN_PIN 14 -#define Y_MAX_PIN 15 -#define Z_MIN_PIN 18 -#define Z_MAX_PIN 19 +#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 +#endif // // Z Probe (when not Z_MIN_PIN) diff --git a/Marlin/src/pins/pins_RAMPS_Dagoma.h b/Marlin/src/pins/pins_RAMPS_Dagoma.h new file mode 100644 index 000000000..8f28b75ae --- /dev/null +++ b/Marlin/src/pins/pins_RAMPS_Dagoma.h @@ -0,0 +1,45 @@ +/** + * Marlin 3D Printer Firmware + * Copyright (C) 2019 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 . + * + */ + +#if HOTENDS > 2 || E_STEPPERS > 2 + #error "Dagoma3D F5 RAMPS supports only 2 hotends / E-steppers. Comment out this line to continue." +#endif + +#define BOARD_NAME "Dagoma3D F5 RAMPS" + +#ifdef E0_AUTO_FAN_PIN + #undef E0_AUTO_FAN_PIN +#endif + +#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 + +#include "pins_RAMPS.h" +