Add Creality3D RAMPS pins definitions (#12229)

This commit is contained in:
InsanityAutomation 2018-10-26 17:09:04 -04:00 committed by Scott Lahteine
parent 5580773191
commit ad60f0691c
5 changed files with 51 additions and 5 deletions

View file

@ -133,11 +133,7 @@
// The following define selects which electronics board you have. // The following define selects which electronics board you have.
// Please choose the name from boards.h that matches your setup // Please choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD #ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_RAMPS_14_EFB #define MOTHERBOARD BOARD_RAMPS_CREALITY
#define PIN_EXP1 65 // A11
#define PIN_EXP2 66 // A12
#define PIN_EXP3 11 // SERVO0_PIN
#define PIN_EXP4 12 // PS_ON_PIN
#endif #endif
// Optional custom name for your RepStrap or other custom machine // Optional custom name for your RepStrap or other custom machine

View file

@ -83,6 +83,7 @@
#define BOARD_TRIGORILLA_13 343 // TriGorilla Anycubic version 1.3 based on RAMPS EFB #define BOARD_TRIGORILLA_13 343 // TriGorilla Anycubic version 1.3 based on RAMPS EFB
#define BOARD_TRIGORILLA_14 443 // TriGorilla Anycubic version 1.4 based on RAMPS EFB #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_ENDER_4 243 // Creality: Ender-4, CR-8
#define BOARD_RAMPS_CREALITY 244 // Creality: CR10S, CR20, CR-X
#define BOARD_FYSETC_F6_13 541 // Fysetc F6 #define BOARD_FYSETC_F6_13 541 // Fysetc F6
// //

View file

@ -148,6 +148,8 @@
#include "pins_TRIGORILLA_14.h" // ATmega2560 env:megaatmega2560 #include "pins_TRIGORILLA_14.h" // ATmega2560 env:megaatmega2560
#elif MB(RAMPS_ENDER_4) #elif MB(RAMPS_ENDER_4)
#include "pins_RAMPS_ENDER_4.h" // ATmega2560 env:megaatmega2560 #include "pins_RAMPS_ENDER_4.h" // ATmega2560 env:megaatmega2560
#elif MB(RAMPS_CREALITY)
#include "pins_RAMPS_CREALITY.h" // ATmega2560 env:megaatmega2560
#elif MB(FYSETC_F6_13) #elif MB(FYSETC_F6_13)
#include "pins_FYSETC_F6_13.h" // ATmega2560 env:megaatmega2560 #include "pins_FYSETC_F6_13.h" // ATmega2560 env:megaatmega2560

View file

@ -53,6 +53,10 @@
#define LCD_PINS_D4 30 // ST9720 CLK #define LCD_PINS_D4 30 // ST9720 CLK
#define FIL_RUNOUT_PIN -1 // Uses Beeper/LED Pin Pulled to GND #define FIL_RUNOUT_PIN -1 // Uses Beeper/LED Pin Pulled to GND
#if DISABLED(SPEAKER) && ENABLED(BLTOUCH)
#define SERVO0_PIN 27
#endif
// Alter timing for graphical display // Alter timing for graphical display
#ifndef ST7920_DELAY_1 #ifndef ST7920_DELAY_1
#define ST7920_DELAY_1 DELAY_NS(125) #define ST7920_DELAY_1 DELAY_NS(125)

View file

@ -0,0 +1,43 @@
/**
* 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/>.
*
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Creality3D RAMPS supports only 2 hotends / E-steppers. Comment out this line to continue."
#endif
#define BOARD_NAME "Creality3D RAMPS"
//
// Heaters / Fans
//
// Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7
#define FIL_RUNOUT_PIN 2
#include "pins_RAMPS.h"
#define EXP1_PIN 65 // A11
#define EXP2_PIN 66 // A12
#define EXP3_PIN 11 // SERVO0_PIN
#define EXP4_PIN 12 // PS_ON_PIN