Selaa lähdekoodia

Add Creality3D RAMPS pins definitions (#12229)

InsanityAutomation 6 vuotta sitten
vanhempi
commit
ad60f0691c

+ 1
- 5
Marlin/src/config/examples/Creality/CR-10S/Configuration.h Näytä tiedosto

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

+ 1
- 0
Marlin/src/core/boards.h Näytä tiedosto

@@ -83,6 +83,7 @@
83 83
 #define BOARD_TRIGORILLA_13     343   // TriGorilla Anycubic version 1.3 based on RAMPS EFB
84 84
 #define BOARD_TRIGORILLA_14     443   // TriGorilla Anycubic version 1.4 based on RAMPS EFB
85 85
 #define BOARD_RAMPS_ENDER_4     243   // Creality: Ender-4, CR-8
86
+#define BOARD_RAMPS_CREALITY    244   // Creality: CR10S, CR20, CR-X
86 87
 #define BOARD_FYSETC_F6_13      541   // Fysetc F6
87 88
 
88 89
 //

+ 2
- 0
Marlin/src/pins/pins.h Näytä tiedosto

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

+ 4
- 0
Marlin/src/pins/pins_MELZI_CREALITY.h Näytä tiedosto

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

+ 43
- 0
Marlin/src/pins/pins_RAMPS_CREALITY.h Näytä tiedosto

@@ -0,0 +1,43 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+#if HOTENDS > 2 || E_STEPPERS > 2
24
+  #error "Creality3D RAMPS supports only 2 hotends / E-steppers. Comment out this line to continue."
25
+#endif
26
+
27
+#define BOARD_NAME "Creality3D RAMPS"
28
+
29
+//
30
+// Heaters / Fans
31
+//
32
+
33
+// Power outputs EFBF or EFBE
34
+#define MOSFET_D_PIN 7
35
+
36
+#define FIL_RUNOUT_PIN 2
37
+
38
+#include "pins_RAMPS.h"
39
+
40
+#define EXP1_PIN 65   // A11
41
+#define EXP2_PIN 66   // A12
42
+#define EXP3_PIN 11   // SERVO0_PIN
43
+#define EXP4_PIN 12   // PS_ON_PIN

Loading…
Peruuta
Tallenna