Browse Source

Creality 4.5.2 format and fix

Scott Lahteine 4 years ago
parent
commit
9e68c9a214

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

@@ -27,7 +27,7 @@
27 27
 #if NOT_TARGET(__STM32F1__)
28 28
   #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
29 29
 #elif HOTENDS > 1 || E_STEPPERS > 1
30
-  #error "Creality_V4 only supports one hotend / E-stepper. Comment out this line to continue."
30
+  #error "Creality V4 only supports one hotend / E-stepper. Comment out this line to continue."
31 31
 #endif
32 32
 
33 33
 #ifndef BOARD_INFO_NAME

+ 50
- 43
Marlin/src/pins/stm32f1/pins_CREALITY_V452.h View File

@@ -33,81 +33,88 @@
33 33
 #define BOARD_NAME "Creality v4.5.2"
34 34
 #define DEFAULT_MACHINE_NAME "Creality3D"
35 35
 
36
+//
37
+// Release PB4 (Z_STEP_PIN) from JTAG NRST role
38
+//
39
+#define DISABLE_DEBUG
40
+
36 41
 #define BOARD_NO_NATIVE_USB
37 42
 
38 43
 //
39 44
 // EEPROM
40 45
 //
41 46
 #if NO_EEPROM_SELECTED
42
-  #define IIC_BL24CXX_EEPROM                    // EEPROM on I2C-0
47
+  #define IIC_BL24CXX_EEPROM                      // EEPROM on I2C-0
43 48
   //#define SDCARD_EEPROM_EMULATION
44 49
 #endif
45 50
 
46 51
 #if ENABLED(IIC_BL24CXX_EEPROM)
47
-  #define IIC_EEPROM_SDA                  PA11
48
-  #define IIC_EEPROM_SCL                  PA12
49
-  #define MARLIN_EEPROM_SIZE             0x800  // 2Kb (24C16)
52
+  #define IIC_EEPROM_SDA                    PA11
53
+  #define IIC_EEPROM_SCL                    PA12
54
+  #define MARLIN_EEPROM_SIZE               0x800  // 2Kb (24C16)
50 55
 #elif ENABLED(SDCARD_EEPROM_EMULATION)
51
-  #define MARLIN_EEPROM_SIZE             0x800  // 2Kb
56
+  #define MARLIN_EEPROM_SIZE               0x800  // 2Kb
52 57
 #endif
53 58
 
54 59
 //
55 60
 // Limit Switches
56 61
 //
57
-#define X_MIN_PIN           PC4
58
-// #define X_MAX_PIN          PA7
59
-#define Y_MIN_PIN           PC5
60
-#define Z_MIN_PIN           PA4
61
-#define PROBE_TARE_PIN      PA5
62
+#define X_STOP_PIN                          PC4
63
+#define Y_STOP_PIN                          PC5
64
+#define Z_STOP_PIN                          PA4
65
+
66
+#define FIL_RUNOUT_PIN                      PA7
62 67
 
63 68
 //
64
-// Steppers
69
+// Probe
65 70
 //
66
-#define X_ENABLE_PIN        PC3
67
-#define X_STEP_PIN          PB8
68
-#define X_DIR_PIN           PB7
69
-
70
-#define Y_ENABLE_PIN        PC3
71
-#define Y_STEP_PIN          PB6
72
-#define Y_DIR_PIN           PB5
71
+#define PROBE_TARE_PIN                      PA5
72
+#define PROBE_ENABLE_PIN                    PC6   // Optoswitch to Enable Z Probe
73 73
 
74
-#define Z_ENABLE_PIN        PC3
75
-#define Z_STEP_PIN          PB4
76
-#define Z_DIR_PIN           PB3
74
+//
75
+// Steppers
76
+//
77
+#define X_ENABLE_PIN                        PC3
78
+#define X_STEP_PIN                          PB8
79
+#define X_DIR_PIN                           PB7
77 80
 
78
-#define E0_ENABLE_PIN       PC3
79
-#define E0_STEP_PIN         PC2
80
-#define E0_DIR_PIN          PB9
81
+#define Y_ENABLE_PIN                        PC3
82
+#define Y_STEP_PIN                          PB6
83
+#define Y_DIR_PIN                           PB5
81 84
 
85
+#define Z_ENABLE_PIN                        PC3
86
+#define Z_STEP_PIN                          PB4
87
+#define Z_DIR_PIN                           PB3
82 88
 
83
-//
84
-// Release PB4 (Z_STEP_PIN) from JTAG NRST role
85
-//
86
-#define DISABLE_DEBUG
89
+#define E0_ENABLE_PIN                       PC3
90
+#define E0_STEP_PIN                         PC2
91
+#define E0_DIR_PIN                          PB9
87 92
 
88 93
 //
89 94
 // Temperature Sensors
90 95
 //
91
-#define TEMP_0_PIN         PB1   // TH1
92
-#define TEMP_BED_PIN       PB0   // TB1
96
+#define TEMP_0_PIN                          PB1   // TH1
97
+#define TEMP_BED_PIN                        PB0   // TB1
93 98
 
94 99
 //
95 100
 // Heaters / Fans
101
+//
102
+#define HEATER_0_PIN                        PA1   // HEATER1
103
+#define HEATER_BED_PIN                      PA2   // HOT BED
96 104
 
97
-#define HEATER_0_PIN       PA1   // HEATER1
98
-#define HEATER_BED_PIN     PA2   // HOT BED
99
-
100
-#define FAN_PIN            PA0   // FAN
105
+#define FAN_PIN                             PA0   // FAN
101 106
 #define FAN_SOFT_PWM
102 107
 
103
-/* SD card detect */
104
-#define SD_DETECT_PIN      PC7
105
-#define NO_SD_HOST_DRIVE       // SD is only seen by the printer
106
-
107
-#define SDIO_SUPPORT           // Extra added by Creality
108
-#define SDIO_CLOCK     6000000 // In original source code overridden by Creality in sdio.h
108
+//
109
+// SD Card
110
+//
111
+#define SD_DETECT_PIN                       PC7
112
+#define NO_SD_HOST_DRIVE                          // SD is only seen by the printer
109 113
 
110
-#define CASE_LIGHT_PIN     PA6
114
+#define SDIO_SUPPORT                              // Extra added by Creality
115
+#define SDIO_CLOCK                       6000000  // In original source code overridden by Creality in sdio.h
111 116
 
112
-#define FIL_RUNOUT_PIN     PA7
113
-#define PROBE_ENABLE_PIN   PC6 // Optoswitch to Enable Z Probe
117
+//
118
+// Misc. Functions
119
+//
120
+#define CASE_LIGHT_PIN                      PA6

Loading…
Cancel
Save