|
@@ -0,0 +1,240 @@
|
|
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
|
+ * Ported sys0724 & Vynt
|
|
22
|
+ */
|
|
23
|
+
|
|
24
|
+/**
|
|
25
|
+ * Arduino Mega? or Due with RuRAMPS4DUE pin assignments
|
|
26
|
+ *
|
|
27
|
+ * Applies to the following boards:
|
|
28
|
+ * RURAMPS4DUE (Hotend0, Hotend1, Hotend2, Fan0, Fan1, Bed)
|
|
29
|
+ *
|
|
30
|
+ * Differences between
|
|
31
|
+ * RADDS | RuRAMPS4DUE
|
|
32
|
+ * |
|
|
33
|
+ */
|
|
34
|
+
|
|
35
|
+#ifndef __SAM3X8E__
|
|
36
|
+ #error "Oops! Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu."
|
|
37
|
+#endif
|
|
38
|
+
|
|
39
|
+#ifndef BOARD_NAME
|
|
40
|
+ #define BOARD_NAME "RuRAMPS4Due v1.3"
|
|
41
|
+#endif
|
|
42
|
+
|
|
43
|
+//
|
|
44
|
+// Servos
|
|
45
|
+//
|
|
46
|
+#define SERVO0_PIN 5
|
|
47
|
+#define SERVO1_PIN 3
|
|
48
|
+
|
|
49
|
+//
|
|
50
|
+// Limit Switches
|
|
51
|
+//
|
|
52
|
+#define X_MIN_PIN 45
|
|
53
|
+#define X_MAX_PIN 39
|
|
54
|
+#define Y_MIN_PIN 46
|
|
55
|
+#define Y_MAX_PIN 41
|
|
56
|
+#define Z_MIN_PIN 47
|
|
57
|
+#define Z_MAX_PIN 43
|
|
58
|
+
|
|
59
|
+//
|
|
60
|
+// Z Probe (when not Z_MIN_PIN)
|
|
61
|
+//
|
|
62
|
+#ifndef Z_MIN_PROBE_PIN
|
|
63
|
+ #define Z_MIN_PROBE_PIN 49
|
|
64
|
+#endif
|
|
65
|
+
|
|
66
|
+//
|
|
67
|
+// Steppers
|
|
68
|
+//
|
|
69
|
+#define X_STEP_PIN 37 // Support Extension Board
|
|
70
|
+#define X_DIR_PIN 36
|
|
71
|
+#define X_ENABLE_PIN 31
|
|
72
|
+#ifndef X_CS_PIN
|
|
73
|
+ #define X_CS_PIN 38
|
|
74
|
+#endif
|
|
75
|
+
|
|
76
|
+#define Y_STEP_PIN 32 // Support Extension Board
|
|
77
|
+#define Y_DIR_PIN 35
|
|
78
|
+#define Y_ENABLE_PIN 31
|
|
79
|
+#ifndef Y_CS_PIN
|
|
80
|
+ #define Y_CS_PIN 34
|
|
81
|
+#endif
|
|
82
|
+
|
|
83
|
+#define Z_STEP_PIN 30 // Support Extension Board
|
|
84
|
+#define Z_DIR_PIN 2
|
|
85
|
+#define Z_ENABLE_PIN 31
|
|
86
|
+#ifndef Z_CS_PIN
|
|
87
|
+ #define Z_CS_PIN 10
|
|
88
|
+#endif
|
|
89
|
+
|
|
90
|
+#define E0_STEP_PIN 29
|
|
91
|
+#define E0_DIR_PIN 28
|
|
92
|
+#define E0_ENABLE_PIN 33
|
|
93
|
+#ifndef E0_CS_PIN
|
|
94
|
+ #define E0_CS_PIN 14
|
|
95
|
+#endif
|
|
96
|
+
|
|
97
|
+#define E1_STEP_PIN 22
|
|
98
|
+#define E1_DIR_PIN 24
|
|
99
|
+#define E1_ENABLE_PIN 26
|
|
100
|
+#ifndef E1_CS_PIN
|
|
101
|
+ #define E1_CS_PIN 15
|
|
102
|
+#endif
|
|
103
|
+
|
|
104
|
+#define E2_STEP_PIN 25
|
|
105
|
+#define E2_DIR_PIN 23
|
|
106
|
+#define E2_ENABLE_PIN 27
|
|
107
|
+#ifndef E2_CS_PIN
|
|
108
|
+ #define E2_CS_PIN 61
|
|
109
|
+#endif
|
|
110
|
+
|
|
111
|
+#if DISABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
|
|
112
|
+ #define Z_MIN_PROBE_PIN 49
|
|
113
|
+#endif
|
|
114
|
+
|
|
115
|
+#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
|
116
|
+ #ifndef FIL_RUNOUT_PIN
|
|
117
|
+ #define FIL_RUNOUT_PIN Y_MIN_PIN
|
|
118
|
+ #endif
|
|
119
|
+#endif
|
|
120
|
+
|
|
121
|
+//
|
|
122
|
+// Heaters / Fans
|
|
123
|
+//
|
|
124
|
+#define HEATER_0_PIN 13
|
|
125
|
+#define HEATER_1_PIN 12
|
|
126
|
+#define HEATER_2_PIN 11
|
|
127
|
+#define HEATER_BED_PIN 7 // BED H1
|
|
128
|
+
|
|
129
|
+#define FAN_PIN 9
|
|
130
|
+#define FAN1_PIN 8
|
|
131
|
+#define CONTROLLER_FAN_PIN -1
|
|
132
|
+
|
|
133
|
+//
|
|
134
|
+// Temperature Sensors
|
|
135
|
+//
|
|
136
|
+#define TEMP_0_PIN 0 // ANALOG A0
|
|
137
|
+#define TEMP_1_PIN 1 // ANALOG A1
|
|
138
|
+#define TEMP_2_PIN 2 // ANALOG A2
|
|
139
|
+#define TEMP_3_PIN 3 // ANALOG A2
|
|
140
|
+#define TEMP_BED_PIN 4 // ANALOG A3
|
|
141
|
+
|
|
142
|
+// The thermocouple uses Analog pins
|
|
143
|
+#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
|
|
144
|
+ #define TEMP_4_PIN 5 // A5
|
|
145
|
+ #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
|
|
146
|
+#endif
|
|
147
|
+
|
|
148
|
+// SPI for Max6675 or Max31855 Thermocouple
|
|
149
|
+//#if DISABLED(SDSUPPORT)
|
|
150
|
+// #define MAX6675_SS 53
|
|
151
|
+//#else
|
|
152
|
+// #define MAX6675_SS 49
|
|
153
|
+//#endif
|
|
154
|
+
|
|
155
|
+//
|
|
156
|
+// Misc. Functions
|
|
157
|
+//
|
|
158
|
+#define SDSS 4 // 4,10,52 if using HW SPI.
|
|
159
|
+#define LED_PIN -1 // 13 - HEATER_0_PIN
|
|
160
|
+#define PS_ON_PIN -1 // 65
|
|
161
|
+
|
|
162
|
+// MKS TFT / Nextion Use internal USART-1
|
|
163
|
+#define TFT_LCD_MODULE_COM 1
|
|
164
|
+#define TFT_LCD_MODULE_BAUDRATE 115600
|
|
165
|
+
|
|
166
|
+// ESP WiFi Use internal USART-2
|
|
167
|
+#define ESP_WIFI_MODULE_COM 2
|
|
168
|
+#define ESP_WIFI_MODULE_BAUDRATE 115600
|
|
169
|
+#define ESP_WIFI_MODULE_RESET_PIN -1
|
|
170
|
+#define PIGGY_GPIO_PIN -1
|
|
171
|
+
|
|
172
|
+//
|
|
173
|
+// EEPROM
|
|
174
|
+//
|
|
175
|
+#define E2END 0x8000 // 32Kb (24lc256)
|
|
176
|
+#define I2C_EEPROM // EEPROM on I2C-0
|
|
177
|
+//#define EEPROM_SD // EEPROM on SDCARD
|
|
178
|
+//#define SPI_EEPROM // EEPROM on SPI-0
|
|
179
|
+//#define SPI_CHAN_EEPROM1 ?
|
|
180
|
+//#define SPI_EEPROM1_CS ?
|
|
181
|
+// 2K EEPROM
|
|
182
|
+//#define SPI_EEPROM2_CS ?
|
|
183
|
+// 32Mb FLASH
|
|
184
|
+//#define SPI_FLASH_CS ?
|
|
185
|
+
|
|
186
|
+//
|
|
187
|
+// LCD / Controller
|
|
188
|
+//
|
|
189
|
+#if ENABLED(ULTRA_LCD)
|
|
190
|
+
|
|
191
|
+ #if ENABLED(RADDS_DISPLAY) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
|
192
|
+
|
|
193
|
+ #define BEEPER_PIN 62
|
|
194
|
+
|
|
195
|
+ #define LCD_PINS_RS 63
|
|
196
|
+ #define LCD_PINS_ENABLE 64
|
|
197
|
+ #define LCD_PINS_D4 48
|
|
198
|
+ #define LCD_PINS_D5 50
|
|
199
|
+ #define LCD_PINS_D6 52
|
|
200
|
+ #define LCD_PINS_D7 53
|
|
201
|
+
|
|
202
|
+ #define SD_DETECT_PIN 51
|
|
203
|
+
|
|
204
|
+ #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
|
205
|
+
|
|
206
|
+ #define BEEPER_PIN 62
|
|
207
|
+
|
|
208
|
+ #define LCD_PINS_RS 52
|
|
209
|
+ #define LCD_PINS_ENABLE 53
|
|
210
|
+ #define LCD_PINS_D4 48
|
|
211
|
+ #define LCD_PINS_D5 50
|
|
212
|
+ #define LCD_PINS_D6 52
|
|
213
|
+ #define LCD_PINS_D7 53
|
|
214
|
+
|
|
215
|
+ #define SD_DETECT_PIN 51
|
|
216
|
+
|
|
217
|
+ #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
|
|
218
|
+
|
|
219
|
+ #define BEEPER_PIN 62
|
|
220
|
+ #define LCD_SDSS 10
|
|
221
|
+ #define SD_DETECT_PIN 51
|
|
222
|
+
|
|
223
|
+ #elif ENABLED(MKS_MINI_12864)
|
|
224
|
+
|
|
225
|
+ #define ORIG_BEEPER_PIN 62
|
|
226
|
+
|
|
227
|
+ #define DOGLCD_A0 52
|
|
228
|
+ #define DOGLCD_CS 50
|
|
229
|
+
|
|
230
|
+ #define SD_DETECT_PIN 51
|
|
231
|
+
|
|
232
|
+ #endif
|
|
233
|
+
|
|
234
|
+ #if ENABLED(NEWPANEL)
|
|
235
|
+ #define BTN_EN1 44
|
|
236
|
+ #define BTN_EN2 42
|
|
237
|
+ #define BTN_ENC 40
|
|
238
|
+ #endif
|
|
239
|
+
|
|
240
|
+#endif // ULTRA_LCD
|