|
@@ -0,0 +1,100 @@
|
|
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
|
+ * Malyan M180 pin assignments
|
|
26
|
+ * Contributed by Timo Birnschein (timo.birnschein@microforge.de)
|
|
27
|
+ */
|
|
28
|
+
|
|
29
|
+#include "env_validate.h"
|
|
30
|
+
|
|
31
|
+#define BOARD_INFO_NAME "Malyan M180 v.2"
|
|
32
|
+//
|
|
33
|
+// Limit Switches
|
|
34
|
+//
|
|
35
|
+#define X_STOP_PIN 48
|
|
36
|
+#define Y_STOP_PIN 46
|
|
37
|
+#define Z_STOP_PIN 42
|
|
38
|
+
|
|
39
|
+//
|
|
40
|
+// Z Probe (when not Z_MIN_PIN)
|
|
41
|
+//
|
|
42
|
+#ifndef Z_MIN_PROBE_PIN
|
|
43
|
+ #define Z_MIN_PROBE_PIN -1
|
|
44
|
+#endif
|
|
45
|
+
|
|
46
|
+//
|
|
47
|
+// Steppers
|
|
48
|
+//
|
|
49
|
+#define X_STEP_PIN 55
|
|
50
|
+#define X_DIR_PIN 54
|
|
51
|
+#define X_ENABLE_PIN 56
|
|
52
|
+
|
|
53
|
+#define Y_STEP_PIN 59
|
|
54
|
+#define Y_DIR_PIN 58
|
|
55
|
+#define Y_ENABLE_PIN 60
|
|
56
|
+
|
|
57
|
+#define Z_STEP_PIN 63
|
|
58
|
+#define Z_DIR_PIN 62
|
|
59
|
+#define Z_ENABLE_PIN 64
|
|
60
|
+
|
|
61
|
+#define E0_STEP_PIN 25
|
|
62
|
+#define E0_DIR_PIN 24
|
|
63
|
+#define E0_ENABLE_PIN 26
|
|
64
|
+
|
|
65
|
+#define E1_STEP_PIN 29
|
|
66
|
+#define E1_DIR_PIN 28
|
|
67
|
+#define E1_ENABLE_PIN 39
|
|
68
|
+
|
|
69
|
+//
|
|
70
|
+// Temperature Sensors
|
|
71
|
+//
|
|
72
|
+#define TEMP_BED_PIN 15 // Analog Input
|
|
73
|
+
|
|
74
|
+// Extruder thermocouples 0 and 1 are read out by two separate ICs using
|
|
75
|
+// SPI for Max6675 Thermocouple
|
|
76
|
+// Uses a separate SPI bus
|
|
77
|
+#define THERMO_SCK_PIN 78 // E2 - SCK
|
|
78
|
+#define THERMO_DO_PIN 3 // E5 - DO
|
|
79
|
+#define THERMO_CS1_PIN 5 // E3 - CS0
|
|
80
|
+#define THERMO_CS2_PIN 2 // E4 - CS1
|
|
81
|
+
|
|
82
|
+#define MAX6675_SS_PIN THERMO_CS1_PIN
|
|
83
|
+#define MAX6675_SS2_PIN THERMO_CS2_PIN
|
|
84
|
+#define MAX6675_SCK_PIN THERMO_SCK_PIN
|
|
85
|
+#define MAX6675_DO_PIN THERMO_DO_PIN
|
|
86
|
+
|
|
87
|
+//
|
|
88
|
+// Heaters / Fans
|
|
89
|
+//
|
|
90
|
+#define HEATER_0_PIN 6
|
|
91
|
+#define HEATER_1_PIN 11
|
|
92
|
+#define HEATER_BED_PIN 45
|
|
93
|
+
|
|
94
|
+#ifndef FAN_PIN
|
|
95
|
+ #define FAN_PIN 7 // M106 Sxxx command supported and tested. M107 as well.
|
|
96
|
+#endif
|
|
97
|
+
|
|
98
|
+#ifndef FAN_PIN1
|
|
99
|
+ #define FAN_PIN1 12 // Currently Unsupported by Marlin
|
|
100
|
+#endif
|