|
@@ -0,0 +1,193 @@
|
|
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
|
+ * Einsy-Retro pin assignments
|
|
25
|
+ */
|
|
26
|
+
|
|
27
|
+#ifndef __AVR_ATmega2560__
|
|
28
|
+ #error "Oops! Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu."
|
|
29
|
+#endif
|
|
30
|
+
|
|
31
|
+#define BOARD_NAME "Einsy Retro"
|
|
32
|
+
|
|
33
|
+//
|
|
34
|
+// TMC2130 Configuration_adv defaults for EinsyRetro
|
|
35
|
+//
|
|
36
|
+#if DISABLED(HAVE_TMC2130)
|
|
37
|
+ #error "You must enable TMC2130 support in Configuration_adv.h for EinsyRetro."
|
|
38
|
+#elif DISABLED(X_IS_TMC2130) || DISABLED(Y_IS_TMC2130) || DISABLED(Z_IS_TMC2130) || DISABLED(E0_IS_TMC2130)
|
|
39
|
+ #error "You must enable ([XYZ]|E0)_IS_TMC2130 in Configuration_adv.h for EinsyRetro."
|
|
40
|
+#endif
|
|
41
|
+
|
|
42
|
+// TMC2130 Diag Pins (currently just for reference)
|
|
43
|
+#define X_DIAG_PIN 64
|
|
44
|
+#define Y_DIAG_PIN 69
|
|
45
|
+#define Z_DIAG_PIN 68
|
|
46
|
+#define E0_DIAG_PIN 65
|
|
47
|
+
|
|
48
|
+//
|
|
49
|
+// Limit Switches
|
|
50
|
+//
|
|
51
|
+// Only use Diag Pins when SENSORLESS_HOMING is enabled for the TMC2130 drivers.
|
|
52
|
+// Otherwise use a physical endstop based configuration.
|
|
53
|
+//
|
|
54
|
+// SERVO0_PIN and Z_MIN_PIN configuration for BLTOUCH sensor when combined with SENSORLESS_HOMING.
|
|
55
|
+//
|
|
56
|
+
|
|
57
|
+#if DISABLED(SENSORLESS_HOMING)
|
|
58
|
+
|
|
59
|
+ #define X_MIN_PIN 12
|
|
60
|
+ #define Y_MIN_PIN 11
|
|
61
|
+ #define Z_MIN_PIN 10
|
|
62
|
+ #define X_MAX_PIN 81
|
|
63
|
+ #define Y_MAX_PIN 57
|
|
64
|
+
|
|
65
|
+#else
|
|
66
|
+
|
|
67
|
+ #if X_HOME_DIR == -1
|
|
68
|
+ #define X_MIN_PIN X_DIAG_PIN
|
|
69
|
+ #define X_MAX_PIN 81
|
|
70
|
+ #else
|
|
71
|
+ #define X_MIN_PIN 12
|
|
72
|
+ #define X_MAX_PIN X_DIAG_PIN
|
|
73
|
+ #endif
|
|
74
|
+
|
|
75
|
+ #if Y_HOME_DIR == -1
|
|
76
|
+ #define Y_MIN_PIN Y_DIAG_PIN
|
|
77
|
+ #define Y_MAX_PIN 57
|
|
78
|
+ #else
|
|
79
|
+ #define Y_MIN_PIN 11
|
|
80
|
+ #define Y_MAX_PIN Y_DIAG_PIN
|
|
81
|
+ #endif
|
|
82
|
+
|
|
83
|
+ #if ENABLED(BLTOUCH)
|
|
84
|
+ #define Z_MIN_PIN 11 // Y-MIN
|
|
85
|
+ #define SERVO0_PIN 10 // Z-MIN
|
|
86
|
+ #else
|
|
87
|
+ #define Z_MIN_PIN 10
|
|
88
|
+ #endif
|
|
89
|
+
|
|
90
|
+#endif
|
|
91
|
+
|
|
92
|
+#define Z_MAX_PIN 7
|
|
93
|
+
|
|
94
|
+//
|
|
95
|
+// Z Probe (when not Z_MIN_PIN)
|
|
96
|
+//
|
|
97
|
+#ifndef Z_MIN_PROBE_PIN
|
|
98
|
+ #define Z_MIN_PROBE_PIN 10
|
|
99
|
+#endif
|
|
100
|
+
|
|
101
|
+//
|
|
102
|
+// Steppers
|
|
103
|
+//
|
|
104
|
+#define X_STEP_PIN 37
|
|
105
|
+#define X_DIR_PIN 49
|
|
106
|
+#define X_ENABLE_PIN 29
|
|
107
|
+#define X_CS_PIN 41
|
|
108
|
+
|
|
109
|
+#define Y_STEP_PIN 36
|
|
110
|
+#define Y_DIR_PIN 48
|
|
111
|
+#define Y_ENABLE_PIN 28
|
|
112
|
+#define Y_CS_PIN 39
|
|
113
|
+
|
|
114
|
+#define Z_STEP_PIN 35
|
|
115
|
+#define Z_DIR_PIN 47
|
|
116
|
+#define Z_ENABLE_PIN 27
|
|
117
|
+#define Z_CS_PIN 67
|
|
118
|
+
|
|
119
|
+#define E0_STEP_PIN 34
|
|
120
|
+#define E0_DIR_PIN 43
|
|
121
|
+#define E0_ENABLE_PIN 26
|
|
122
|
+#define E0_CS_PIN 66
|
|
123
|
+
|
|
124
|
+//
|
|
125
|
+// Temperature Sensors
|
|
126
|
+//
|
|
127
|
+#define TEMP_0_PIN 0 // Analog Input
|
|
128
|
+#define TEMP_1_PIN 1 // Analog Input
|
|
129
|
+#define TEMP_BED_PIN 2 // Analog Input
|
|
130
|
+
|
|
131
|
+//
|
|
132
|
+// Heaters / Fans
|
|
133
|
+//
|
|
134
|
+#define HEATER_0_PIN 3
|
|
135
|
+#define HEATER_BED_PIN 4
|
|
136
|
+
|
|
137
|
+#define FAN_PIN 8
|
|
138
|
+#define FAN1_PIN 6
|
|
139
|
+
|
|
140
|
+//
|
|
141
|
+// Misc. Functions
|
|
142
|
+//
|
|
143
|
+#define SDSS 53
|
|
144
|
+#define LED_PIN 13
|
|
145
|
+#define CASE_LIGHT_PIN 9
|
|
146
|
+
|
|
147
|
+//
|
|
148
|
+// M3/M4/M5 - Spindle/Laser Control
|
|
149
|
+//
|
|
150
|
+// use P1 connector for spindle pins
|
|
151
|
+#define SPINDLE_LASER_PWM_PIN 9 // MUST BE HARDWARE PWM
|
|
152
|
+#define SPINDLE_LASER_ENABLE_PIN 18 // Pin should have a pullup!
|
|
153
|
+#define SPINDLE_DIR_PIN 19
|
|
154
|
+
|
|
155
|
+//
|
|
156
|
+// Průša i3 MK2 Multiplexer Support
|
|
157
|
+//
|
|
158
|
+#define E_MUX0_PIN 17
|
|
159
|
+#define E_MUX1_PIN 16
|
|
160
|
+#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
|
161
|
+
|
|
162
|
+//
|
|
163
|
+// LCD / Controller
|
|
164
|
+//
|
|
165
|
+#if ENABLED(ULTRA_LCD)
|
|
166
|
+
|
|
167
|
+ #define KILL_PIN 32
|
|
168
|
+
|
|
169
|
+ #if ENABLED(NEWPANEL)
|
|
170
|
+
|
|
171
|
+ #if ENABLED(CR10_STOCKDISPLAY)
|
|
172
|
+ #define LCD_PINS_RS 85
|
|
173
|
+ #define LCD_PINS_ENABLE 71
|
|
174
|
+ #define LCD_PINS_D4 70
|
|
175
|
+ #define BTN_EN1 18
|
|
176
|
+ #define BTN_EN2 19
|
|
177
|
+ #else
|
|
178
|
+ #define LCD_PINS_RS 82
|
|
179
|
+ #define LCD_PINS_ENABLE 18
|
|
180
|
+ #define LCD_PINS_D4 19
|
|
181
|
+ #define LCD_PINS_D5 70
|
|
182
|
+ #define LCD_PINS_D6 85
|
|
183
|
+ #define LCD_PINS_D7 71
|
|
184
|
+ #define BTN_EN1 14
|
|
185
|
+ #define BTN_EN2 72
|
|
186
|
+ #endif
|
|
187
|
+
|
|
188
|
+ #define BTN_ENC 9 // AUX-2
|
|
189
|
+ #define BEEPER_PIN 84 // AUX-4
|
|
190
|
+ #define SD_DETECT_PIN 15
|
|
191
|
+
|
|
192
|
+ #endif // NEWPANEL
|
|
193
|
+#endif // ULTRA_LCD
|