|
@@ -0,0 +1,66 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2022 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
|
+#pragma once
|
|
23
|
+
|
|
24
|
+/**
|
|
25
|
+ * Creality V24S1_301 (STM32F103RCT) board pin assignments as found on Ender 3 S1
|
|
26
|
+ */
|
|
27
|
+
|
|
28
|
+#include "env_validate.h"
|
|
29
|
+
|
|
30
|
+#if HAS_MULTI_HOTEND || E_STEPPERS > 1
|
|
31
|
+ #error "Creality V4 only supports one hotend / E-stepper. Comment out this line to continue."
|
|
32
|
+#endif
|
|
33
|
+
|
|
34
|
+#define BOARD_INFO_NAME "Creality V24S1-301"
|
|
35
|
+#define DEFAULT_MACHINE_NAME "Ender 3 S1"
|
|
36
|
+
|
|
37
|
+//
|
|
38
|
+// Servos
|
|
39
|
+//
|
|
40
|
+#if !defined(SERVO0_PIN) && !defined(HAS_PIN_27_BOARD)
|
|
41
|
+ #define SERVO0_PIN PC13 // BLTouch OUT
|
|
42
|
+#endif
|
|
43
|
+
|
|
44
|
+//
|
|
45
|
+// Limit Switches
|
|
46
|
+//
|
|
47
|
+#define Z_STOP_PIN PC14
|
|
48
|
+
|
|
49
|
+#ifndef Z_MIN_PROBE_PIN
|
|
50
|
+ #define Z_MIN_PROBE_PIN PC14 // BLTouch IN
|
|
51
|
+#endif
|
|
52
|
+
|
|
53
|
+//
|
|
54
|
+// Filament Runout Sensor
|
|
55
|
+//
|
|
56
|
+#ifndef FIL_RUNOUT_PIN
|
|
57
|
+ #define FIL_RUNOUT_PIN PC15 // "Pulled-high"
|
|
58
|
+#endif
|
|
59
|
+
|
|
60
|
+//
|
|
61
|
+// Heaters / Fans
|
|
62
|
+//
|
|
63
|
+#define HEATER_BED_PIN PA7 // HOT BED
|
|
64
|
+#define FAN1_PIN PC0 // extruder fan
|
|
65
|
+
|
|
66
|
+#include "pins_CREALITY_V4.h"
|