Skip to content

Commit 99c38c1

Browse files
thinkyheadChicos123
authored andcommitted
📌 Creality 4.3.1 board variants (MarlinFirmware#22704)
Co-authored-by: Chico <[email protected]>
1 parent ecb02f2 commit 99c38c1

File tree

4 files changed

+35
-20
lines changed

4 files changed

+35
-20
lines changed

‎Marlin/src/core/boards.h‎

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,21 @@
340340
#define BOARD_CREALITY_V427 4040 // Creality v4.2.7 (STM32F103RE)
341341
#define BOARD_CREALITY_V4210 4041 // Creality v4.2.10 (STM32F103RE) as found in the CR-30
342342
#define BOARD_CREALITY_V431 4042 // Creality v4.3.1 (STM32F103RE)
343-
#define BOARD_CREALITY_V452 4043 // Creality v4.5.2 (STM32F103RE)
344-
#define BOARD_CREALITY_V453 4044 // Creality v4.5.3 (STM32F103RE)
345-
#define BOARD_TRIGORILLA_PRO 4045 // Trigorilla Pro (STM32F103ZET6)
346-
#define BOARD_FLY_MINI 4046 // FLYmaker FLY MINI (STM32F103RCT6)
347-
#define BOARD_FLSUN_HISPEED 4047 // FLSUN HiSpeedV1 (STM32F103VET6)
348-
#define BOARD_BEAST 4048 // STM32F103RET6 Libmaple-based controller
349-
#define BOARD_MINGDA_MPX_ARM_MINI 4049 // STM32F103ZET6 Mingda MD-16
350-
#define BOARD_GTM32_PRO_VD 4050 // STM32F103VET6 controller
351-
#define BOARD_ZONESTAR_ZM3E2 4051 // Zonestar ZM3E2 (STM32F103RCT6)
352-
#define BOARD_ZONESTAR_ZM3E4 4052 // Zonestar ZM3E4 V1 (STM32F103VCT6)
353-
#define BOARD_ZONESTAR_ZM3E4V2 4053 // Zonestar ZM3E4 V2 (STM32F103VCT6)
343+
#define BOARD_CREALITY_V431_A 4043 // Creality v4.3.1a (STM32F103RE)
344+
#define BOARD_CREALITY_V431_B 4044 // Creality v4.3.1b (STM32F103RE)
345+
#define BOARD_CREALITY_V431_C 4045 // Creality v4.3.1c (STM32F103RE)
346+
#define BOARD_CREALITY_V431_D 4046 // Creality v4.3.1d (STM32F103RE)
347+
#define BOARD_CREALITY_V452 4047 // Creality v4.5.2 (STM32F103RE)
348+
#define BOARD_CREALITY_V453 4048 // Creality v4.5.3 (STM32F103RE)
349+
#define BOARD_TRIGORILLA_PRO 4049 // Trigorilla Pro (STM32F103ZET6)
350+
#define BOARD_FLY_MINI 4050 // FLYmaker FLY MINI (STM32F103RCT6)
351+
#define BOARD_FLSUN_HISPEED 4051 // FLSUN HiSpeedV1 (STM32F103VET6)
352+
#define BOARD_BEAST 4052 // STM32F103RET6 Libmaple-based controller
353+
#define BOARD_MINGDA_MPX_ARM_MINI 4053 // STM32F103ZET6 Mingda MD-16
354+
#define BOARD_GTM32_PRO_VD 4054 // STM32F103VET6 controller
355+
#define BOARD_ZONESTAR_ZM3E2 4055 // Zonestar ZM3E2 (STM32F103RCT6)
356+
#define BOARD_ZONESTAR_ZM3E4 4056 // Zonestar ZM3E4 V1 (STM32F103VCT6)
357+
#define BOARD_ZONESTAR_ZM3E4V2 4057 // Zonestar ZM3E4 V2 (STM32F103VCT6)
354358

355359
//
356360
// ARM Cortex-M4F

‎Marlin/src/pins/pins.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@
549549
#include "stm32f1/pins_CREALITY_V4210.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
550550
#elif MB(CREALITY_V427)
551551
#include "stm32f1/pins_CREALITY_V427.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
552-
#elif MB(CREALITY_V431)
552+
#elif MB(CREALITY_V431, CREALITY_V431_A, CREALITY_V431_B, CREALITY_V431_C, CREALITY_V431_D)
553553
#include "stm32f1/pins_CREALITY_V431.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
554554
#elif MB(CREALITY_V452)
555555
#include "stm32f1/pins_CREALITY_V452.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple

‎Marlin/src/pins/stm32f1/pins_CREALITY_V4.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,37 +88,37 @@
8888
//
8989
// Steppers
9090
//
91-
#define X_ENABLE_PIN PC3
9291
#ifndef X_STEP_PIN
9392
#define X_STEP_PIN PC2
9493
#endif
9594
#ifndef X_DIR_PIN
9695
#define X_DIR_PIN PB9
9796
#endif
97+
#define X_ENABLE_PIN PC3 // Shared
9898

99-
#define Y_ENABLE_PIN PC3
10099
#ifndef Y_STEP_PIN
101100
#define Y_STEP_PIN PB8
102101
#endif
103102
#ifndef Y_DIR_PIN
104103
#define Y_DIR_PIN PB7
105104
#endif
105+
#define Y_ENABLE_PIN X_ENABLE_PIN
106106

107-
#define Z_ENABLE_PIN PC3
108107
#ifndef Z_STEP_PIN
109108
#define Z_STEP_PIN PB6
110109
#endif
111110
#ifndef Z_DIR_PIN
112111
#define Z_DIR_PIN PB5
113112
#endif
113+
#define Z_ENABLE_PIN X_ENABLE_PIN
114114

115-
#define E0_ENABLE_PIN PC3
116115
#ifndef E0_STEP_PIN
117116
#define E0_STEP_PIN PB4
118117
#endif
119118
#ifndef E0_DIR_PIN
120119
#define E0_DIR_PIN PB3
121120
#endif
121+
#define E0_ENABLE_PIN X_ENABLE_PIN
122122

123123
//
124124
// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role

‎Marlin/src/pins/stm32f1/pins_CREALITY_V431.h‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,21 @@
3131
//
3232
// Steppers
3333
//
34-
#define X_STEP_PIN PB8
35-
#define X_DIR_PIN PB7
34+
#if MB(CREALITY_V431, CREALITY_V431_A, CREALITY_V431_B)
3635

37-
#define Y_STEP_PIN PC2
38-
#define Y_DIR_PIN PB9
36+
#define X_STEP_PIN PB8
37+
#define X_DIR_PIN PB7
38+
39+
#define Y_STEP_PIN PC2
40+
#define Y_DIR_PIN PB9
41+
42+
#endif
43+
44+
#if MB(CREALITY_V431_B, CREALITY_V431_C)
45+
46+
#define E0_STEP_PIN PB3
47+
#define E0_DIR_PIN PB4
48+
49+
#endif
3950

4051
#include "pins_CREALITY_V4.h"

0 commit comments

Comments
 (0)