Browse Source

Add Creality3D RAMPS pins definitions (#12229)

pull/1/head
InsanityAutomation 6 years ago
committed by Scott Lahteine
parent
commit
ad60f0691c
  1. 6
      Marlin/src/config/examples/Creality/CR-10S/Configuration.h
  2. 1
      Marlin/src/core/boards.h
  3. 2
      Marlin/src/pins/pins.h
  4. 4
      Marlin/src/pins/pins_MELZI_CREALITY.h
  5. 43
      Marlin/src/pins/pins_RAMPS_CREALITY.h

6
Marlin/src/config/examples/Creality/CR-10S/Configuration.h

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

1
Marlin/src/core/boards.h

@ -83,6 +83,7 @@
#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_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
//

2
Marlin/src/pins/pins.h

@ -148,6 +148,8 @@
#include "pins_TRIGORILLA_14.h" // ATmega2560 env:megaatmega2560
#elif MB(RAMPS_ENDER_4)
#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)
#include "pins_FYSETC_F6_13.h" // ATmega2560 env:megaatmega2560

4
Marlin/src/pins/pins_MELZI_CREALITY.h

@ -53,6 +53,10 @@
#define LCD_PINS_D4 30 // ST9720 CLK
#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
#ifndef ST7920_DELAY_1
#define ST7920_DELAY_1 DELAY_NS(125)

43
Marlin/src/pins/pins_RAMPS_CREALITY.h

@ -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
Loading…
Cancel
Save