Browse Source

Creality3D v4.2.7 (#19088)

ellensp 3 years ago
parent
commit
04909a2010
No account linked to committer's email address

+ 2
- 1
Marlin/src/core/boards.h View File

@@ -313,7 +313,8 @@
313 313
 #define BOARD_CHITU3D_V5              4031  // Chitu3D TronXY X5SA V5 Board
314 314
 #define BOARD_CHITU3D_V6              4032  // Chitu3D TronXY X5SA V5 Board
315 315
 #define BOARD_CREALITY_V4             4033  // Creality v4.x (STM32F103RE)
316
-#define BOARD_TRIGORILLA_PRO          4034  // Trigorilla Pro (STM32F103ZET6)
316
+#define BOARD_CREALITY_V427           4034  // Creality v4.2.7 (STM32F103RE)
317
+#define BOARD_TRIGORILLA_PRO          4035  // Trigorilla Pro (STM32F103ZET6)
317 318
 
318 319
 //
319 320
 // ARM Cortex-M4F

+ 2
- 0
Marlin/src/pins/pins.h View File

@@ -550,6 +550,8 @@
550 550
   #include "stm32f1/pins_CHITU3D_V6.h"          // STM32F1                                env:chitu_f103
551 551
 #elif MB(CREALITY_V4)
552 552
   #include "stm32f1/pins_CREALITY_V4.h"         // STM32F1                                env:STM32F103RET6_creality
553
+#elif MB(CREALITY_V427)
554
+  #include "stm32f1/pins_CREALITY_V427.h"       // STM32F1                                env:STM32F103RET6_creality
553 555
 #elif MB(TRIGORILLA_PRO)
554 556
   #include "stm32f1/pins_TRIGORILLA_PRO.h"      // STM32F1                                env:trigorilla_pro
555 557
 

+ 30
- 10
Marlin/src/pins/stm32f1/pins_CREALITY_V4.h View File

@@ -32,8 +32,12 @@
32 32
   #error "CREALITY supports up to 1 hotends / E-steppers. Comment out this line to continue."
33 33
 #endif
34 34
 
35
-#define BOARD_INFO_NAME      "CREALITY V4"
36
-#define DEFAULT_MACHINE_NAME "Ender 3 V2"
35
+#ifndef BOARD_INFO_NAME
36
+  #define BOARD_INFO_NAME      "Creality V4"
37
+#endif
38
+#ifndef DEFAULT_MACHINE_NAME
39
+  #define DEFAULT_MACHINE_NAME "Ender 3 V2"
40
+#endif
37 41
 
38 42
 //
39 43
 // EEPROM
@@ -90,20 +94,36 @@
90 94
 // Steppers
91 95
 //
92 96
 #define X_ENABLE_PIN                        PC3
93
-#define X_STEP_PIN                          PC2
94
-#define X_DIR_PIN                           PB9
97
+#ifndef X_STEP_PIN
98
+  #define X_STEP_PIN                        PC2
99
+#endif
100
+#ifndef X_DIR_PIN
101
+  #define X_DIR_PIN                         PB9
102
+#endif
95 103
 
96 104
 #define Y_ENABLE_PIN                        PC3
97
-#define Y_STEP_PIN                          PB8
98
-#define Y_DIR_PIN                           PB7
105
+#ifndef Y_STEP_PIN
106
+  #define Y_STEP_PIN                        PB8
107
+#endif
108
+#ifndef Y_DIR_PIN
109
+  #define Y_DIR_PIN                         PB7
110
+#endif
99 111
 
100 112
 #define Z_ENABLE_PIN                        PC3
101
-#define Z_STEP_PIN                          PB6
102
-#define Z_DIR_PIN                           PB5
113
+#ifndef Z_STEP_PIN
114
+  #define Z_STEP_PIN                        PB6
115
+#endif
116
+#ifndef Z_DIR_PIN
117
+  #define Z_DIR_PIN                         PB5
118
+#endif
103 119
 
104 120
 #define E0_ENABLE_PIN                       PC3
105
-#define E0_STEP_PIN                         PB4
106
-#define E0_DIR_PIN                          PB3
121
+#ifndef E0_STEP_PIN
122
+  #define E0_STEP_PIN                       PB4
123
+#endif
124
+#ifndef E0_DIR_PIN
125
+  #define E0_DIR_PIN                        PB3
126
+#endif
107 127
 
108 128
 //
109 129
 // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role

+ 48
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V427.h View File

@@ -0,0 +1,48 @@
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 <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+/**
24
+ * CREALITY v4.2.7 (STM32F103) board pin assignments
25
+ */
26
+
27
+#ifndef __STM32F1__
28
+  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
29
+#endif
30
+
31
+#define BOARD_INFO_NAME      "Creality v4.2.7"
32
+#define DEFAULT_MACHINE_NAME "Creality3D"
33
+
34
+//
35
+// Steppers
36
+//
37
+#define X_STEP_PIN                          PB9
38
+#define X_DIR_PIN                           PC2
39
+#define Y_STEP_PIN                          PB7
40
+
41
+#define Y_DIR_PIN                           PB8
42
+#define Z_STEP_PIN                          PB5
43
+#define Z_DIR_PIN                           PB6
44
+
45
+#define E0_STEP_PIN                         PB3
46
+#define E0_DIR_PIN                          PB4
47
+
48
+#include "pins_CREALITY_V4.h"

Loading…
Cancel
Save