Explorar el Código

Creality 4.2.10 board (#20647)

Scott Lahteine hace 4 años
padre
commit
edea49f9a9
No account linked to committer's email address

+ 8
- 7
Marlin/src/core/boards.h Ver fichero

330
 #define BOARD_CHITU3D_V6              4037  // Chitu3D TronXY X5SA V5 Board
330
 #define BOARD_CHITU3D_V6              4037  // Chitu3D TronXY X5SA V5 Board
331
 #define BOARD_CREALITY_V4             4038  // Creality v4.x (STM32F103RE)
331
 #define BOARD_CREALITY_V4             4038  // Creality v4.x (STM32F103RE)
332
 #define BOARD_CREALITY_V427           4039  // Creality v4.2.7 (STM32F103RE)
332
 #define BOARD_CREALITY_V427           4039  // Creality v4.2.7 (STM32F103RE)
333
-#define BOARD_CREALITY_V431           4040  // Creality v4.3.1 (STM32F103RE)
334
-#define BOARD_CREALITY_V452           4041  // Creality v4.5.2 (STM32F103RE)
335
-#define BOARD_CREALITY_V453           4042  // Creality v4.5.3 (STM32F103RE)
336
-#define BOARD_TRIGORILLA_PRO          4043  // Trigorilla Pro (STM32F103ZET6)
337
-#define BOARD_FLY_MINI                4044  // FLY MINI (STM32F103RCT6)
338
-#define BOARD_FLSUN_HISPEED           4045  // FLSUN HiSpeedV1 (STM32F103VET6)
339
-#define BOARD_BEAST                   4046  // STM32F103RET6 Libmaple-based controller
333
+#define BOARD_CREALITY_V4210          4040  // Creality v4.2.10 (STM32F103RE) as found in the CR-30
334
+#define BOARD_CREALITY_V431           4041  // Creality v4.3.1 (STM32F103RE)
335
+#define BOARD_CREALITY_V452           4042  // Creality v4.5.2 (STM32F103RE)
336
+#define BOARD_CREALITY_V453           4043  // Creality v4.5.3 (STM32F103RE)
337
+#define BOARD_TRIGORILLA_PRO          4044  // Trigorilla Pro (STM32F103ZET6)
338
+#define BOARD_FLY_MINI                4045  // FLY MINI (STM32F103RCT6)
339
+#define BOARD_FLSUN_HISPEED           4046  // FLSUN HiSpeedV1 (STM32F103VET6)
340
+#define BOARD_BEAST                   4047  // STM32F103RET6 Libmaple-based controller
340
 
341
 
341
 //
342
 //
342
 // ARM Cortex-M4F
343
 // ARM Cortex-M4F

+ 2
- 0
Marlin/src/pins/pins.h Ver fichero

530
   #include "stm32f1/pins_CHITU3D_V6.h"          // STM32F1                                env:chitu_f103
530
   #include "stm32f1/pins_CHITU3D_V6.h"          // STM32F1                                env:chitu_f103
531
 #elif MB(CREALITY_V4)
531
 #elif MB(CREALITY_V4)
532
   #include "stm32f1/pins_CREALITY_V4.h"         // STM32F1                                env:STM32F103RET6_creality
532
   #include "stm32f1/pins_CREALITY_V4.h"         // STM32F1                                env:STM32F103RET6_creality
533
+#elif MB(CREALITY_V4210)
534
+  #include "stm32f1/pins_CREALITY_V4210.h"      // STM32F1                                env:STM32F103RET6_creality
533
 #elif MB(CREALITY_V427)
535
 #elif MB(CREALITY_V427)
534
   #include "stm32f1/pins_CREALITY_V427.h"       // STM32F1                                env:STM32F103RET6_creality
536
   #include "stm32f1/pins_CREALITY_V427.h"       // STM32F1                                env:STM32F103RET6_creality
535
 #elif MB(CREALITY_V431)
537
 #elif MB(CREALITY_V431)

+ 208
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V4210.h Ver fichero

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 4.2.10 (STM32F103) board pin assignments
25
+ */
26
+
27
+#if NOT_TARGET(__STM32F1__)
28
+  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
29
+#elif HOTENDS > 1 || E_STEPPERS > 1
30
+  #error "CREALITY supports up to 1 hotends / E-steppers. Comment out this line to continue."
31
+#endif
32
+
33
+#ifndef BOARD_INFO_NAME
34
+  #define BOARD_INFO_NAME      "Creality V4.2.10"
35
+#endif
36
+#ifndef DEFAULT_MACHINE_NAME
37
+  #define DEFAULT_MACHINE_NAME "3DPrintMill"
38
+#endif
39
+
40
+#define BOARD_NO_NATIVE_USB
41
+
42
+//
43
+// EEPROM
44
+//
45
+#if NO_EEPROM_SELECTED
46
+  // FLASH
47
+  //#define FLASH_EEPROM_EMULATION
48
+
49
+  // I2C
50
+  #define IIC_BL24CXX_EEPROM                      // EEPROM on I2C-0 used only for display settings
51
+  #if ENABLED(IIC_BL24CXX_EEPROM)
52
+    #define IIC_EEPROM_SDA                  PA11
53
+    #define IIC_EEPROM_SCL                  PA12
54
+    #define MARLIN_EEPROM_SIZE             0x800  // 2Kb (24C16)
55
+  #else
56
+    #define SDCARD_EEPROM_EMULATION               // SD EEPROM until all EEPROM is BL24CXX
57
+    #define MARLIN_EEPROM_SIZE             0x800  // 2Kb
58
+  #endif
59
+
60
+  // SPI
61
+  //#define SPI_EEPROM                            // EEPROM on SPI-0
62
+  //#define SPI_CHAN_EEPROM1  ?
63
+  //#define SPI_EEPROM1_CS    ?
64
+
65
+  // 2K EEPROM
66
+  //#define SPI_EEPROM2_CS    ?
67
+
68
+  // 32Mb FLASH
69
+  //#define SPI_FLASH_CS      ?
70
+#endif
71
+
72
+//
73
+// Servos
74
+//
75
+#define SERVO0_PIN                          PB0   // BLTouch OUT
76
+
77
+//
78
+// Limit Switches
79
+//
80
+#define X_STOP_PIN                          PA3
81
+#define Y_STOP_PIN                          PA7
82
+#define Z_STOP_PIN                          PA5
83
+
84
+#define Z_MIN_PROBE_PIN                     PA5   // BLTouch IN
85
+
86
+//
87
+// Filament Runout Sensor
88
+//
89
+#ifndef FIL_RUNOUT_PIN
90
+  #define FIL_RUNOUT_PIN                    PA6   // "Pulled-high"
91
+#endif
92
+
93
+//
94
+// Steppers
95
+//
96
+#define X_ENABLE_PIN                        PC3
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
103
+
104
+#define Y_ENABLE_PIN                        PC3
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
111
+
112
+#define Z_ENABLE_PIN                        PC3
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
119
+
120
+#define E0_ENABLE_PIN                       PC3
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
127
+
128
+//
129
+// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
130
+//
131
+#define DISABLE_DEBUG
132
+
133
+//
134
+// Temperature Sensors
135
+//
136
+#define TEMP_0_PIN                          PC5   // TH1
137
+#define TEMP_BED_PIN                        PC4   // TB1
138
+
139
+//
140
+// Heaters / Fans
141
+//
142
+#define HEATER_0_PIN                        PA0   // HEATER1
143
+#define HEATER_BED_PIN                      PA1   // HOT BED
144
+
145
+#define FAN_PIN                             PA2   // FAN
146
+#define FAN_SOFT_PWM
147
+
148
+//
149
+// SD Card
150
+//
151
+#define SD_DETECT_PIN                       PC7
152
+#define SDCARD_CONNECTION                ONBOARD
153
+#define ONBOARD_SPI_DEVICE                     1
154
+#define ONBOARD_SD_CS_PIN                   PA4   // SDSS
155
+#define SDIO_SUPPORT
156
+#define NO_SD_HOST_DRIVE                          // This board's SD is only seen by the printer
157
+
158
+#if ENABLED(CR10_STOCKDISPLAY) && NONE(RET6_12864_LCD, VET6_12864_LCD)
159
+  #error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
160
+#endif
161
+
162
+#if ENABLED(RET6_12864_LCD)
163
+
164
+  // RET6 12864 LCD
165
+  #define LCD_PINS_RS                       PB12
166
+  #define LCD_PINS_ENABLE                   PB15
167
+  #define LCD_PINS_D4                       PB13
168
+
169
+  #define BTN_ENC                           PB2
170
+  #define BTN_EN1                           PB10
171
+  #define BTN_EN2                           PB14
172
+
173
+  #define BEEPER_PIN                        PC6
174
+
175
+#elif ENABLED(VET6_12864_LCD)
176
+
177
+  // VET6 12864 LCD
178
+  #define LCD_PINS_RS                       PA4
179
+  #define LCD_PINS_ENABLE                   PA7
180
+  #define LCD_PINS_D4                       PA5
181
+
182
+  #define BTN_ENC                           PC5
183
+  #define BTN_EN1                           PB10
184
+  #define BTN_EN2                           PA6
185
+
186
+#elif ENABLED(DWIN_CREALITY_LCD)
187
+
188
+  // RET6 DWIN ENCODER LCD
189
+  #define BTN_ENC                           PB14
190
+  #define BTN_EN1                           PB15
191
+  #define BTN_EN2                           PB12
192
+
193
+  //#define LCD_LED_PIN                     PB2
194
+  #ifndef BEEPER_PIN
195
+    #define BEEPER_PIN                      PB13
196
+    #undef SPEAKER
197
+  #endif
198
+
199
+#elif ENABLED(DWIN_VET6_CREALITY_LCD)
200
+
201
+  // VET6 DWIN ENCODER LCD
202
+  #define BTN_ENC                           PA6
203
+  #define BTN_EN1                           PA7
204
+  #define BTN_EN2                           PA4
205
+
206
+  #define BEEPER_PIN                        PA5
207
+
208
+#endif

Loading…
Cancelar
Guardar