|
@@ -0,0 +1,174 @@
|
|
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-Rambo 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 Rambo"
|
|
32
|
+#define LARGE_FLASH true
|
|
33
|
+
|
|
34
|
+//
|
|
35
|
+// TMC2130 Configuration_adv defaults for EinsyRambo
|
|
36
|
+//
|
|
37
|
+#if DISABLED(HAVE_TMC2130)
|
|
38
|
+ #error "You must enable TMC2130 support in Configuration_adv.h for EinsyRambo."
|
|
39
|
+#elif DISABLED(X_IS_TMC2130) || DISABLED(Y_IS_TMC2130) || DISABLED(Z_IS_TMC2130) || DISABLED(E0_IS_TMC2130)
|
|
40
|
+ #error "You must enable ([XYZ]|E0)_IS_TMC2130 in Configuration_adv.h for EinsyRambo."
|
|
41
|
+#endif
|
|
42
|
+
|
|
43
|
+// TMC2130 Diag Pins (currently just for reference)
|
|
44
|
+#define X_DIAG_PIN 64
|
|
45
|
+#define Y_DIAG_PIN 69
|
|
46
|
+#define Z_DIAG_PIN 68
|
|
47
|
+#define E0_DIAG_PIN 65
|
|
48
|
+
|
|
49
|
+//
|
|
50
|
+// Limit Switches
|
|
51
|
+//
|
|
52
|
+#define X_MIN_PIN 64 //12
|
|
53
|
+#define X_MAX_PIN -1
|
|
54
|
+#define Y_MIN_PIN 69 //11
|
|
55
|
+#define Y_MAX_PIN -1
|
|
56
|
+#define Z_MIN_PIN 68 //10
|
|
57
|
+#define Z_MAX_PIN -1
|
|
58
|
+
|
|
59
|
+//
|
|
60
|
+// Z Probe (when not Z_MIN_PIN)
|
|
61
|
+//
|
|
62
|
+#ifndef Z_MIN_PROBE_PIN
|
|
63
|
+ #define Z_MIN_PROBE_PIN 10
|
|
64
|
+#endif
|
|
65
|
+
|
|
66
|
+//
|
|
67
|
+// Steppers
|
|
68
|
+//
|
|
69
|
+#define X_STEP_PIN 37
|
|
70
|
+#define X_DIR_PIN 49
|
|
71
|
+#define X_ENABLE_PIN 29
|
|
72
|
+#define X_CS_PIN 41
|
|
73
|
+
|
|
74
|
+#define Y_STEP_PIN 36
|
|
75
|
+#define Y_DIR_PIN 48
|
|
76
|
+#define Y_ENABLE_PIN 28
|
|
77
|
+#define Y_CS_PIN 39
|
|
78
|
+
|
|
79
|
+#define Z_STEP_PIN 35
|
|
80
|
+#define Z_DIR_PIN 47
|
|
81
|
+#define Z_ENABLE_PIN 27
|
|
82
|
+#define Z_CS_PIN 67
|
|
83
|
+
|
|
84
|
+#define E0_STEP_PIN 34
|
|
85
|
+#define E0_DIR_PIN 43
|
|
86
|
+#define E0_ENABLE_PIN 26
|
|
87
|
+#define E0_CS_PIN 66
|
|
88
|
+
|
|
89
|
+#define E1_STEP_PIN -1
|
|
90
|
+#define E1_DIR_PIN -1
|
|
91
|
+#define E1_ENABLE_PIN -1
|
|
92
|
+
|
|
93
|
+// Microstepping pins - uses SPI instead
|
|
94
|
+#define X_MS1_PIN -1
|
|
95
|
+#define X_MS2_PIN -1
|
|
96
|
+#define Y_MS1_PIN -1
|
|
97
|
+#define Y_MS2_PIN -1
|
|
98
|
+#define Z_MS1_PIN -1
|
|
99
|
+#define Z_MS2_PIN -1
|
|
100
|
+#define E0_MS1_PIN -1
|
|
101
|
+#define E0_MS2_PIN -1
|
|
102
|
+
|
|
103
|
+//
|
|
104
|
+// Temperature Sensors
|
|
105
|
+//
|
|
106
|
+#define TEMP_0_PIN 0 // Analog Input
|
|
107
|
+#define TEMP_1_PIN 1 // Analog Input
|
|
108
|
+#define TEMP_BED_PIN 2 // Analog Input
|
|
109
|
+
|
|
110
|
+//
|
|
111
|
+// Heaters / Fans
|
|
112
|
+//
|
|
113
|
+#define HEATER_0_PIN 3
|
|
114
|
+#define HEATER_1_PIN -1
|
|
115
|
+#define HEATER_2_PIN -1
|
|
116
|
+#define HEATER_BED_PIN 4
|
|
117
|
+
|
|
118
|
+#define FAN_PIN 8
|
|
119
|
+#define FAN1_PIN 6
|
|
120
|
+
|
|
121
|
+//
|
|
122
|
+// Misc. Functions
|
|
123
|
+//
|
|
124
|
+#define SDSS 77
|
|
125
|
+#define LED_PIN 13
|
|
126
|
+#define CASE_LIGHT_PIN 9
|
|
127
|
+
|
|
128
|
+//
|
|
129
|
+// M3/M4/M5 - Spindle/Laser Control
|
|
130
|
+//
|
|
131
|
+// use P1 connector for spindle pins
|
|
132
|
+#define SPINDLE_LASER_PWM_PIN 9 // MUST BE HARDWARE PWM
|
|
133
|
+#define SPINDLE_LASER_ENABLE_PIN 18 // Pin should have a pullup!
|
|
134
|
+#define SPINDLE_DIR_PIN 19
|
|
135
|
+
|
|
136
|
+//
|
|
137
|
+// Průša i3 MK2 Multiplexer Support
|
|
138
|
+//
|
|
139
|
+#define E_MUX0_PIN 17
|
|
140
|
+#define E_MUX1_PIN 16
|
|
141
|
+#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
|
142
|
+
|
|
143
|
+//
|
|
144
|
+// LCD / Controller
|
|
145
|
+//
|
|
146
|
+#if ENABLED(ULTRA_LCD)
|
|
147
|
+
|
|
148
|
+ #define KILL_PIN 32
|
|
149
|
+
|
|
150
|
+ #if ENABLED(NEWPANEL)
|
|
151
|
+
|
|
152
|
+ #if ENABLED(CR10_STOCKDISPLAY)
|
|
153
|
+ #define LCD_PINS_RS 85
|
|
154
|
+ #define LCD_PINS_ENABLE 71
|
|
155
|
+ #define LCD_PINS_D4 70
|
|
156
|
+ #define BTN_EN1 61
|
|
157
|
+ #define BTN_EN2 59
|
|
158
|
+ #else
|
|
159
|
+ #define LCD_PINS_RS 82
|
|
160
|
+ #define LCD_PINS_ENABLE 61
|
|
161
|
+ #define LCD_PINS_D4 59
|
|
162
|
+ #define LCD_PINS_D5 70
|
|
163
|
+ #define LCD_PINS_D6 85
|
|
164
|
+ #define LCD_PINS_D7 71
|
|
165
|
+ #define BTN_EN1 14
|
|
166
|
+ #define BTN_EN2 72
|
|
167
|
+ #endif
|
|
168
|
+
|
|
169
|
+ #define BTN_ENC 9 // AUX-2
|
|
170
|
+ #define BEEPER_PIN 84 // AUX-4
|
|
171
|
+ #define SD_DETECT_PIN 15
|
|
172
|
+
|
|
173
|
+ #endif // NEWPANEL
|
|
174
|
+#endif // ULTRA_LCD
|