|
@@ -0,0 +1,133 @@
|
|
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
|
+ * Geeetech GT2560 Revision A board pin assignments, based on the work of
|
|
25
|
+ * George Robles (https://georges3dprinters.com) and
|
|
26
|
+ * Richard Smith <galorin@gmail.com>
|
|
27
|
+ */
|
|
28
|
+
|
|
29
|
+#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
|
30
|
+ #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
|
|
31
|
+#endif
|
|
32
|
+
|
|
33
|
+#define BOARD_NAME "GT2560 Rev.A"
|
|
34
|
+#define DEFAULT_MACHINE_NAME "Prusa i3 Pro B"
|
|
35
|
+#define LARGE_FLASH true
|
|
36
|
+
|
|
37
|
+//
|
|
38
|
+// Limit Switches
|
|
39
|
+//
|
|
40
|
+#define X_MIN_PIN 22
|
|
41
|
+#define X_MAX_PIN 24
|
|
42
|
+#define Y_MIN_PIN 26
|
|
43
|
+#define Y_MAX_PIN 28
|
|
44
|
+#define Z_MIN_PIN 30
|
|
45
|
+#define Z_MAX_PIN 32
|
|
46
|
+
|
|
47
|
+//
|
|
48
|
+// Steppers
|
|
49
|
+//
|
|
50
|
+#define X_STEP_PIN 25
|
|
51
|
+#define X_DIR_PIN 23
|
|
52
|
+#define X_ENABLE_PIN 27
|
|
53
|
+
|
|
54
|
+#define Y_STEP_PIN 31
|
|
55
|
+#define Y_DIR_PIN 33
|
|
56
|
+#define Y_ENABLE_PIN 29
|
|
57
|
+
|
|
58
|
+#define Z_STEP_PIN 37
|
|
59
|
+#define Z_DIR_PIN 39
|
|
60
|
+#define Z_ENABLE_PIN 35
|
|
61
|
+
|
|
62
|
+#define E0_STEP_PIN 43
|
|
63
|
+#define E0_DIR_PIN 45
|
|
64
|
+#define E0_ENABLE_PIN 41
|
|
65
|
+
|
|
66
|
+#define E1_STEP_PIN 49
|
|
67
|
+#define E1_DIR_PIN 47
|
|
68
|
+#define E1_ENABLE_PIN 48
|
|
69
|
+
|
|
70
|
+//
|
|
71
|
+// Temperature Sensors
|
|
72
|
+//
|
|
73
|
+#define TEMP_0_PIN 8
|
|
74
|
+#define TEMP_1_PIN 9
|
|
75
|
+#define TEMP_BED_PIN 10
|
|
76
|
+
|
|
77
|
+//
|
|
78
|
+// Heaters / Fans
|
|
79
|
+//
|
|
80
|
+#define HEATER_0_PIN 2
|
|
81
|
+#define HEATER_1_PIN 3
|
|
82
|
+#define HEATER_BED_PIN 4
|
|
83
|
+#define FAN_PIN 7
|
|
84
|
+
|
|
85
|
+//
|
|
86
|
+// Misc. Functions
|
|
87
|
+//
|
|
88
|
+#define SDPOWER -1
|
|
89
|
+#define SDSS 53
|
|
90
|
+#define LED_PIN 13
|
|
91
|
+#define PS_ON_PIN 12
|
|
92
|
+#define SUICIDE_PIN 54 // Must be enabled at startup to keep power flowing
|
|
93
|
+#define KILL_PIN -1
|
|
94
|
+
|
|
95
|
+#if ENABLED(ULTRA_LCD)
|
|
96
|
+
|
|
97
|
+ #define BEEPER_PIN 18
|
|
98
|
+
|
|
99
|
+ #if ENABLED(NEWPANEL)
|
|
100
|
+
|
|
101
|
+ #define LCD_PINS_RS 20
|
|
102
|
+ #define LCD_PINS_ENABLE 17
|
|
103
|
+ #define LCD_PINS_D4 16
|
|
104
|
+ #define LCD_PINS_D5 21
|
|
105
|
+ #define LCD_PINS_D6 5
|
|
106
|
+ #define LCD_PINS_D7 6
|
|
107
|
+
|
|
108
|
+ // Buttons are directly attached
|
|
109
|
+ #define BTN_EN1 42
|
|
110
|
+ #define BTN_EN2 40
|
|
111
|
+ #define BTN_ENC 19
|
|
112
|
+
|
|
113
|
+ #define SD_DETECT_PIN 38
|
|
114
|
+
|
|
115
|
+ #else // !NEWPANEL
|
|
116
|
+
|
|
117
|
+ #define SHIFT_CLK 38
|
|
118
|
+ #define SHIFT_LD 42
|
|
119
|
+ #define SHIFT_OUT 40
|
|
120
|
+ #define SHIFT_EN 17
|
|
121
|
+
|
|
122
|
+ #define LCD_PINS_RS 16
|
|
123
|
+ #define LCD_PINS_ENABLE 5
|
|
124
|
+ #define LCD_PINS_D4 6
|
|
125
|
+ #define LCD_PINS_D5 21
|
|
126
|
+ #define LCD_PINS_D6 20
|
|
127
|
+ #define LCD_PINS_D7 19
|
|
128
|
+
|
|
129
|
+ #define SD_DETECT_PIN -1
|
|
130
|
+
|
|
131
|
+ #endif // !NEWPANEL
|
|
132
|
+
|
|
133
|
+#endif // ULTRA_LCD
|