|
@@ -0,0 +1,224 @@
|
|
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
|
+ * A13 | A9/D63 (shares the same pin with AUX2_4PIN)
|
|
33
|
+ * A14 | A10/D64 (shares the same pin with AUX2_5PIN)
|
|
34
|
+ * A15 | NC
|
|
35
|
+ */
|
|
36
|
+
|
|
37
|
+#ifndef __SAM3X8E__
|
|
38
|
+ #error "Oops! Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu."
|
|
39
|
+#endif
|
|
40
|
+
|
|
41
|
+#ifndef BOARD_NAME
|
|
42
|
+ #define BOARD_NAME "RuRAMPS4Due"
|
|
43
|
+#endif
|
|
44
|
+
|
|
45
|
+#undef INVERTED_HEATER_PINS
|
|
46
|
+#undef INVERTED_BED_PINS
|
|
47
|
+#undef INVERTED_FAN_PINS
|
|
48
|
+
|
|
49
|
+#define I2C_EEPROM
|
|
50
|
+//#define SPI_EEPROM
|
|
51
|
+
|
|
52
|
+//
|
|
53
|
+// Servos
|
|
54
|
+//
|
|
55
|
+#define SERVO0_PIN 5
|
|
56
|
+#define SERVO1_PIN 3
|
|
57
|
+#define SERVO2_PIN -1
|
|
58
|
+#define SERVO3_PIN 1
|
|
59
|
+
|
|
60
|
+//
|
|
61
|
+// Limit Switches
|
|
62
|
+//
|
|
63
|
+#define X_MIN_PIN 45
|
|
64
|
+#define X_MAX_PIN 39
|
|
65
|
+#define Y_MIN_PIN 46
|
|
66
|
+#define Y_MAX_PIN 41
|
|
67
|
+#define Z_MIN_PIN 49
|
|
68
|
+#define Z_MAX_PIN 43
|
|
69
|
+
|
|
70
|
+//
|
|
71
|
+// Z Probe (when not Z_MIN_PIN)
|
|
72
|
+//
|
|
73
|
+#ifndef Z_MIN_PROBE_PIN
|
|
74
|
+ #define Z_MIN_PROBE_PIN 43
|
|
75
|
+#endif
|
|
76
|
+
|
|
77
|
+//
|
|
78
|
+// Steppers
|
|
79
|
+//
|
|
80
|
+#define X_STEP_PIN 37
|
|
81
|
+#define X_DIR_PIN 36
|
|
82
|
+#define X_ENABLE_PIN 38
|
|
83
|
+#define X_CS_PIN -1
|
|
84
|
+
|
|
85
|
+#define Y_STEP_PIN 32
|
|
86
|
+#define Y_DIR_PIN 35
|
|
87
|
+#define Y_ENABLE_PIN 34
|
|
88
|
+#define Y_CS_PIN -1
|
|
89
|
+
|
|
90
|
+#define Z_STEP_PIN 30
|
|
91
|
+#define Z_DIR_PIN 2
|
|
92
|
+#define Z_ENABLE_PIN 33
|
|
93
|
+#define Z_CS_PIN -1
|
|
94
|
+
|
|
95
|
+#define E0_STEP_PIN 29
|
|
96
|
+#define E0_DIR_PIN 28
|
|
97
|
+#define E0_ENABLE_PIN 31
|
|
98
|
+#define E0_CS_PIN -1
|
|
99
|
+
|
|
100
|
+#define E1_STEP_PIN 22
|
|
101
|
+#define E1_DIR_PIN 24
|
|
102
|
+#define E1_ENABLE_PIN 26
|
|
103
|
+#define E1_CS_PIN -1
|
|
104
|
+
|
|
105
|
+#define E2_STEP_PIN 25 //14 //sys0724
|
|
106
|
+#define E2_DIR_PIN 23 //15
|
|
107
|
+#define E2_ENABLE_PIN 27 //61
|
|
108
|
+#define E2_CS_PIN -1
|
|
109
|
+
|
|
110
|
+// For Extension Board V2
|
|
111
|
+// http://doku.radds.org/dokumentation/extension-board
|
|
112
|
+//#define E3_STEP_PIN 35
|
|
113
|
+//#define E3_DIR_PIN 33
|
|
114
|
+//#define E3_ENABLE_PIN 37
|
|
115
|
+//#define E3_CS_PIN 6
|
|
116
|
+
|
|
117
|
+//#define Z2_STEP_PIN 29
|
|
118
|
+//#define Z2_DIR_PIN 27
|
|
119
|
+//#define Z2_ENABLE_PIN 31
|
|
120
|
+//#define Z2_CS_PIN 39
|
|
121
|
+
|
|
122
|
+// Microstepping pins - Mapping not from fastio.h (?)
|
|
123
|
+//#define E3_MS1_PIN 67
|
|
124
|
+//#define E3_MS2_PIN 68
|
|
125
|
+//#define E3_MS3_PIN 69
|
|
126
|
+//#define Z2_MS1_PIN 67 // shared with E3_MS1_PIN
|
|
127
|
+//#define Z2_MS2_PIN 68 // shared with E3_MS2_PIN
|
|
128
|
+//#define Z2_MS3_PIN 69 // shared with E3_MS3_PIN
|
|
129
|
+
|
|
130
|
+//
|
|
131
|
+// Temperature Sensors
|
|
132
|
+//
|
|
133
|
+#define TEMP_0_PIN 0 // ANALOG NUMBERING #54
|
|
134
|
+#define TEMP_1_PIN 1 // ANALOG NUMBERING #55
|
|
135
|
+#define TEMP_2_PIN 2 // ANALOG NUMBERING #56
|
|
136
|
+#define TEMP_3_PIN 3 // ANALOG NUMBERING #57
|
|
137
|
+#define TEMP_BED_PIN 4 // ANALOG NUMBERING #58
|
|
138
|
+
|
|
139
|
+/*
|
|
140
|
+// SPI for Max6675 or Max31855 Thermocouple
|
|
141
|
+#if DISABLED(SDSUPPORT)
|
|
142
|
+ #define MAX6675_SS 53
|
|
143
|
+#else
|
|
144
|
+ #define MAX6675_SS 49
|
|
145
|
+#endif
|
|
146
|
+*/
|
|
147
|
+
|
|
148
|
+//
|
|
149
|
+// Heaters / Fans
|
|
150
|
+//
|
|
151
|
+#define HEATER_0_PIN 13
|
|
152
|
+#define HEATER_1_PIN 12
|
|
153
|
+#define HEATER_2_PIN 11
|
|
154
|
+#define HEATER_BED_PIN 7 // BED H1
|
|
155
|
+
|
|
156
|
+#define FAN_PIN 9
|
|
157
|
+#define FAN1_PIN 8
|
|
158
|
+
|
|
159
|
+//
|
|
160
|
+// Misc. Functions
|
|
161
|
+//
|
|
162
|
+#define SDSS 4 // 4,10,52 if using HW SPI.
|
|
163
|
+#define LED_PIN 13
|
|
164
|
+
|
|
165
|
+//#define FIL_RUNOUT_PIN Y_MIN_PIN
|
|
166
|
+
|
|
167
|
+//
|
|
168
|
+// LCD / Controller
|
|
169
|
+//
|
|
170
|
+#if ENABLED(ULTRA_LCD)
|
|
171
|
+ // RADDS LCD panel
|
|
172
|
+ #if ENABLED(RADDS_DISPLAY) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
|
173
|
+ #define LCD_PINS_RS 63
|
|
174
|
+ #define LCD_PINS_ENABLE 64
|
|
175
|
+ #define LCD_PINS_D4 48
|
|
176
|
+ #define LCD_PINS_D5 50
|
|
177
|
+ #define LCD_PINS_D6 52
|
|
178
|
+ #define LCD_PINS_D7 53
|
|
179
|
+
|
|
180
|
+ #define BEEPER_PIN 62
|
|
181
|
+
|
|
182
|
+ #define BTN_EN1 44
|
|
183
|
+ #define BTN_EN2 42
|
|
184
|
+ #define BTN_ENC 40
|
|
185
|
+
|
|
186
|
+ #define SD_DETECT_PIN 51
|
|
187
|
+
|
|
188
|
+ #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
|
189
|
+ #define LCD_PINS_RS 52 //?
|
|
190
|
+ #define LCD_PINS_ENABLE 53 //?
|
|
191
|
+ #define LCD_PINS_D4 48 //?
|
|
192
|
+ #define LCD_PINS_D5 50 //?
|
|
193
|
+ #define LCD_PINS_D6 52 //?
|
|
194
|
+ #define LCD_PINS_D7 53 //?
|
|
195
|
+
|
|
196
|
+ #define BEEPER_PIN 62
|
|
197
|
+
|
|
198
|
+ #define BTN_EN1 44 //!
|
|
199
|
+ #define BTN_EN2 42 //!
|
|
200
|
+ #define BTN_ENC 40
|
|
201
|
+ #define SD_DETECT_PIN 51
|
|
202
|
+
|
|
203
|
+ #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
|
|
204
|
+
|
|
205
|
+ #define BTN_EN1 44 //?
|
|
206
|
+ #define BTN_EN2 42 //?
|
|
207
|
+ #define BTN_ENC 40 //?
|
|
208
|
+ #define SD_DETECT_PIN 51 //?
|
|
209
|
+
|
|
210
|
+ #define BEEPER_PIN 62 //?
|
|
211
|
+ #define LCD_SDSS 10 //?
|
|
212
|
+
|
|
213
|
+ #elif ENABLED(SPARK_FULL_GRAPHICS) //!!! - check!
|
|
214
|
+
|
|
215
|
+ #define LCD_PINS_D4 29
|
|
216
|
+ #define LCD_PINS_ENABLE 27
|
|
217
|
+ #define LCD_PINS_RS 25
|
|
218
|
+ #define BTN_EN1 35
|
|
219
|
+ #define BTN_EN2 33
|
|
220
|
+ #define BTN_ENC 37
|
|
221
|
+
|
|
222
|
+ #endif // SPARK_FULL_GRAPHICS
|
|
223
|
+
|
|
224
|
+#endif // ULTRA_LCD
|