|
@@ -0,0 +1,116 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2020 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
|
+#pragma once
|
|
23
|
+
|
|
24
|
+/**
|
|
25
|
+ * Ortur 4 Arduino Mega based on RAMPS v1.4 pin assignments
|
|
26
|
+ */
|
|
27
|
+
|
|
28
|
+#define BOARD_INFO_NAME "Ortur 4.3"
|
|
29
|
+#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
|
30
|
+
|
|
31
|
+//
|
|
32
|
+// Servos
|
|
33
|
+//
|
|
34
|
+#define SERVO0_PIN 29
|
|
35
|
+
|
|
36
|
+//
|
|
37
|
+// Limit Switches
|
|
38
|
+//
|
|
39
|
+#define X_MAX_PIN 18
|
|
40
|
+#define Z_MIN_PIN 63
|
|
41
|
+
|
|
42
|
+#define Z_MIN_PROBE_PIN 2
|
|
43
|
+#define FIL_RUNOUT_PIN 59
|
|
44
|
+
|
|
45
|
+//
|
|
46
|
+// Steppers
|
|
47
|
+//
|
|
48
|
+#define E0_CS_PIN 44
|
|
49
|
+#define E1_CS_PIN 42
|
|
50
|
+
|
|
51
|
+//
|
|
52
|
+// Temperature Sensors
|
|
53
|
+//
|
|
54
|
+#define TEMP_0_PIN 15 // Analog Input
|
|
55
|
+#define TEMP_1_PIN 13 // Analog Input
|
|
56
|
+
|
|
57
|
+//
|
|
58
|
+// Software serial
|
|
59
|
+//
|
|
60
|
+#define X_SERIAL_TX_PIN 59
|
|
61
|
+#define X_SERIAL_RX_PIN 63
|
|
62
|
+
|
|
63
|
+#define Y_SERIAL_TX_PIN 64
|
|
64
|
+#define Y_SERIAL_RX_PIN 40
|
|
65
|
+
|
|
66
|
+#define Z_SERIAL_TX_PIN 44
|
|
67
|
+#define Z_SERIAL_RX_PIN 42
|
|
68
|
+
|
|
69
|
+#define E0_SERIAL_TX_PIN 66
|
|
70
|
+#define E0_SERIAL_RX_PIN 65
|
|
71
|
+
|
|
72
|
+#include "pins_RAMPS.h"
|
|
73
|
+
|
|
74
|
+//
|
|
75
|
+// Steppers
|
|
76
|
+//
|
|
77
|
+#undef E0_STEP_PIN
|
|
78
|
+#undef E0_DIR_PIN
|
|
79
|
+#undef E0_ENABLE_PIN
|
|
80
|
+#define E0_STEP_PIN 36
|
|
81
|
+#define E0_DIR_PIN 34
|
|
82
|
+#define E0_ENABLE_PIN 30
|
|
83
|
+
|
|
84
|
+#undef E1_STEP_PIN
|
|
85
|
+#undef E1_DIR_PIN
|
|
86
|
+#undef E1_ENABLE_PIN
|
|
87
|
+#define E1_STEP_PIN 26
|
|
88
|
+#define E1_DIR_PIN 28
|
|
89
|
+#define E1_ENABLE_PIN 24
|
|
90
|
+
|
|
91
|
+//
|
|
92
|
+// LCD / Controller
|
|
93
|
+//
|
|
94
|
+#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
|
95
|
+ #undef BEEPER_PIN
|
|
96
|
+ #define BEEPER_PIN 35
|
|
97
|
+
|
|
98
|
+ #undef LCD_PINS_RS
|
|
99
|
+ #undef LCD_PINS_ENABLE
|
|
100
|
+ #undef LCD_PINS_D4
|
|
101
|
+ #define LCD_PINS_RS 27
|
|
102
|
+ #define LCD_PINS_ENABLE 23
|
|
103
|
+ #define LCD_PINS_D4 37
|
|
104
|
+
|
|
105
|
+ #undef LCD_SDSS
|
|
106
|
+ #undef SD_DETECT_PIN
|
|
107
|
+ #define LCD_SDSS 53
|
|
108
|
+ #define SD_DETECT_PIN 49
|
|
109
|
+
|
|
110
|
+ #undef BTN_EN1
|
|
111
|
+ #undef BTN_EN2
|
|
112
|
+ #undef BTN_ENC
|
|
113
|
+ #define BTN_EN1 29
|
|
114
|
+ #define BTN_EN2 25
|
|
115
|
+ #define BTN_ENC 16
|
|
116
|
+#endif
|