|
@@ -0,0 +1,179 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2021 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
|
+ * KRATOS32
|
|
26
|
+ */
|
|
27
|
+
|
|
28
|
+#include "env_validate.h"
|
|
29
|
+
|
|
30
|
+#define BOARD_INFO_NAME "K.3D KRATOS32"
|
|
31
|
+
|
|
32
|
+//
|
|
33
|
+// EEPROM
|
|
34
|
+//
|
|
35
|
+#if EITHER(NO_EEPROM_SELECTED, I2C_EEPROM)
|
|
36
|
+ #define I2C_EEPROM
|
|
37
|
+ #define MARLIN_EEPROM_SIZE 0x1F400 // 16KB
|
|
38
|
+#endif
|
|
39
|
+
|
|
40
|
+//
|
|
41
|
+// Servos
|
|
42
|
+//
|
|
43
|
+#define SERVO0_PIN 6
|
|
44
|
+#define SERVO1_PIN 5
|
|
45
|
+#define SERVO2_PIN 39
|
|
46
|
+#define SERVO3_PIN 40 // CAMERA_PIN (extended to the top of the LCD module)
|
|
47
|
+#define SERVO4_PIN 45 // FIL_RUNOUT_PIN
|
|
48
|
+
|
|
49
|
+//
|
|
50
|
+// Limit Switches
|
|
51
|
+//
|
|
52
|
+#define X_MIN_PIN 28
|
|
53
|
+#define X_MAX_PIN 34
|
|
54
|
+#define Y_MIN_PIN 30
|
|
55
|
+#define Y_MAX_PIN 36
|
|
56
|
+#define Z_MIN_PIN 32
|
|
57
|
+#define Z_MAX_PIN 38
|
|
58
|
+
|
|
59
|
+//
|
|
60
|
+// Steppers
|
|
61
|
+//
|
|
62
|
+#define X_STEP_PIN 24
|
|
63
|
+#define X_DIR_PIN 23
|
|
64
|
+#define X_ENABLE_PIN 26
|
|
65
|
+#ifndef X_CS_PIN
|
|
66
|
+ #define X_CS_PIN 25
|
|
67
|
+#endif
|
|
68
|
+
|
|
69
|
+#define Y_STEP_PIN 17
|
|
70
|
+#define Y_DIR_PIN 16
|
|
71
|
+#define Y_ENABLE_PIN 22
|
|
72
|
+#ifndef Y_CS_PIN
|
|
73
|
+ #define Y_CS_PIN 27
|
|
74
|
+#endif
|
|
75
|
+
|
|
76
|
+#define Z_STEP_PIN 2
|
|
77
|
+#define Z_DIR_PIN 3
|
|
78
|
+#define Z_ENABLE_PIN 15
|
|
79
|
+#ifndef Z_CS_PIN
|
|
80
|
+ #define Z_CS_PIN 29
|
|
81
|
+#endif
|
|
82
|
+
|
|
83
|
+#define E0_STEP_PIN 61
|
|
84
|
+#define E0_DIR_PIN 60
|
|
85
|
+#define E0_ENABLE_PIN 62
|
|
86
|
+#ifndef E0_CS_PIN
|
|
87
|
+ #define E0_CS_PIN 31
|
|
88
|
+#endif
|
|
89
|
+
|
|
90
|
+#define E1_STEP_PIN 64
|
|
91
|
+#define E1_DIR_PIN 63
|
|
92
|
+#define E1_ENABLE_PIN 65
|
|
93
|
+#ifndef E1_CS_PIN
|
|
94
|
+ #define E1_CS_PIN 37
|
|
95
|
+#endif
|
|
96
|
+
|
|
97
|
+#define E2_STEP_PIN 68
|
|
98
|
+#define E2_DIR_PIN 67
|
|
99
|
+#define E2_ENABLE_PIN 69
|
|
100
|
+#ifndef E2_CS_PIN
|
|
101
|
+ #define E2_CS_PIN 35
|
|
102
|
+#endif
|
|
103
|
+
|
|
104
|
+#define E3_STEP_PIN 51
|
|
105
|
+#define E3_DIR_PIN 53
|
|
106
|
+#define E3_ENABLE_PIN 49
|
|
107
|
+#ifndef E3_CS_PIN
|
|
108
|
+ #define E3_CS_PIN 33
|
|
109
|
+#endif
|
|
110
|
+
|
|
111
|
+//
|
|
112
|
+// Temperature Sensors
|
|
113
|
+//
|
|
114
|
+#define TEMP_0_PIN 0 // Analog Input
|
|
115
|
+#define TEMP_1_PIN 1 // Analog Input
|
|
116
|
+#define TEMP_2_PIN 2 // Analog Input
|
|
117
|
+#define TEMP_3_PIN 3 // Analog Input
|
|
118
|
+#define TEMP_BED_PIN 4 // Analog Input
|
|
119
|
+
|
|
120
|
+//
|
|
121
|
+// Heaters / Fans
|
|
122
|
+//
|
|
123
|
+#define HEATER_0_PIN 13
|
|
124
|
+#define HEATER_1_PIN 12
|
|
125
|
+#define HEATER_2_PIN 11
|
|
126
|
+#define HEATER_3_PIN 10
|
|
127
|
+#define HEATER_BED_PIN 7 // BED
|
|
128
|
+
|
|
129
|
+#ifndef FAN_PIN
|
|
130
|
+ #define FAN_PIN 9
|
|
131
|
+#endif
|
|
132
|
+#define FAN1_PIN 8
|
|
133
|
+
|
|
134
|
+//
|
|
135
|
+// Misc. Functions
|
|
136
|
+//
|
|
137
|
+#ifndef FIL_RUNOUT_PIN
|
|
138
|
+ #define FIL_RUNOUT_PIN 45 // SERVO4_PIN
|
|
139
|
+#endif
|
|
140
|
+
|
|
141
|
+#ifndef PS_ON_PIN
|
|
142
|
+ #define PS_ON_PIN 59
|
|
143
|
+#endif
|
|
144
|
+
|
|
145
|
+//
|
|
146
|
+// LCD / Controller
|
|
147
|
+//
|
|
148
|
+#if HAS_WIRED_LCD
|
|
149
|
+
|
|
150
|
+ #define BTN_EN1 48
|
|
151
|
+ #define BTN_EN2 50
|
|
152
|
+ #define BTN_ENC 46
|
|
153
|
+
|
|
154
|
+ #define SDSS 4
|
|
155
|
+ #define SD_DETECT_PIN 14
|
|
156
|
+
|
|
157
|
+ #define BEEPER_PIN 41
|
|
158
|
+ #define KILL_PIN 66
|
|
159
|
+
|
|
160
|
+ #if IS_RRD_FG_SC
|
|
161
|
+
|
|
162
|
+ #define LCD_PINS_RS 42
|
|
163
|
+ #define LCD_PINS_ENABLE 43
|
|
164
|
+ #define LCD_PINS_D4 44
|
|
165
|
+
|
|
166
|
+ #define BTN_BACK 52
|
|
167
|
+
|
|
168
|
+ #elif ENABLED(K3D_242_OLED_CONTROLLER)
|
|
169
|
+
|
|
170
|
+ #define LCD_PINS_DC 44
|
|
171
|
+ #define LCD_PINS_RS 42
|
|
172
|
+ #define DOGLCD_CS 52
|
|
173
|
+ #define DOGLCD_MOSI 43
|
|
174
|
+ #define DOGLCD_SCK 47
|
|
175
|
+ #define DOGLCD_A0 LCD_PINS_DC
|
|
176
|
+
|
|
177
|
+ #endif
|
|
178
|
+
|
|
179
|
+#endif // HAS_WIRED_LCD
|