|
@@ -0,0 +1,46 @@
|
|
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 <http://www.gnu.org/licenses/>.
|
|
20
|
+ *
|
|
21
|
+ */
|
|
22
|
+
|
|
23
|
+/**
|
|
24
|
+ * MKS BASE with Heroic HR4982 stepper drivers
|
|
25
|
+ */
|
|
26
|
+
|
|
27
|
+#include "pins_MKS_BASE.h"
|
|
28
|
+
|
|
29
|
+/**
|
|
30
|
+ * Microstepping pins (reverse engineered at V1.4 - due to closed source schematics).
|
|
31
|
+ * Some new boards use HR4982 (Heroic) instead of the A4982 (Allegro) stepper drivers.
|
|
32
|
+ * While most of the functionality is similar, the HR variant obviously doesn't work
|
|
33
|
+ * with diode smoothers (no fast decay). And the Heroic has a 128 µStepping mode where
|
|
34
|
+ * the A4982 is doing quarter steps (MS1=L / MS2=H).
|
|
35
|
+ */
|
|
36
|
+#define HEROIC_STEPPER_DRIVERS
|
|
37
|
+#define X_MS1_PIN 5 // Digital 3 / Pin 5 / PE3 / SERVO2_PIN
|
|
38
|
+#define X_MS2_PIN 6 // Digital 6 / Pin 14 / PH3 / SERVO1_PIN
|
|
39
|
+#define Y_MS1_PIN 59 // Analog 5 / Pin 92 / PF5
|
|
40
|
+#define Y_MS2_PIN 58 // Analog 4 / Pin 93 / PF4
|
|
41
|
+#define Z_MS1_PIN 22 // Digital 22 / Pin 78 / PA0
|
|
42
|
+#define Z_MS2_PIN 39 // Digital 39 / Pin 70 / PG2
|
|
43
|
+#define E0_MS1_PIN 63 // Analog 9 / Pin 86 / PK1
|
|
44
|
+#define E0_MS2_PIN 64 // Analog 10 / Pin 87 / PK2
|
|
45
|
+#define E1_MS1_PIN 57 // Analog 3 / Pin 93 / PF3
|
|
46
|
+#define E1_MS2_PIN 4 // Digital 4 / Pin 1 / PG5 / SERVO3_PIN
|