|
@@ -0,0 +1,194 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
4
|
+ * Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
5
|
+ *
|
|
6
|
+ * Based on Sprinter and grbl.
|
|
7
|
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
8
|
+ *
|
|
9
|
+ * This program is free software: you can redistribute it and/or modify
|
|
10
|
+ * it under the terms of the GNU General Public License as published by
|
|
11
|
+ * the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+ * (at your option) any later version.
|
|
13
|
+ *
|
|
14
|
+ * This program is distributed in the hope that it will be useful,
|
|
15
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+ * GNU General Public License for more details.
|
|
18
|
+ *
|
|
19
|
+ * You should have received a copy of the GNU General Public License
|
|
20
|
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+ *
|
|
22
|
+ */
|
|
23
|
+
|
|
24
|
+#ifndef TARGET_LPC1768
|
|
25
|
+ #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
|
26
|
+#endif
|
|
27
|
+
|
|
28
|
+#ifndef BOARD_NAME
|
|
29
|
+ #define BOARD_NAME "BIQU SKR V1.1"
|
|
30
|
+#endif
|
|
31
|
+
|
|
32
|
+//
|
|
33
|
+// Limit Switches
|
|
34
|
+//
|
|
35
|
+#define X_MIN_PIN P1_29
|
|
36
|
+#define X_MAX_PIN P1_28
|
|
37
|
+#define Y_MIN_PIN P1_27
|
|
38
|
+#define Y_MAX_PIN P1_26
|
|
39
|
+#define Z_MIN_PIN P1_25
|
|
40
|
+#define Z_MAX_PIN P1_24
|
|
41
|
+
|
|
42
|
+//
|
|
43
|
+// Steppers
|
|
44
|
+//
|
|
45
|
+#define X_STEP_PIN P0_04
|
|
46
|
+#define X_DIR_PIN P0_05
|
|
47
|
+#define X_ENABLE_PIN P4_28
|
|
48
|
+
|
|
49
|
+#define Y_STEP_PIN P2_01
|
|
50
|
+#define Y_DIR_PIN P2_02
|
|
51
|
+#define Y_ENABLE_PIN P2_00
|
|
52
|
+
|
|
53
|
+#define Z_STEP_PIN P0_20
|
|
54
|
+#define Z_DIR_PIN P0_21
|
|
55
|
+#define Z_ENABLE_PIN P0_19
|
|
56
|
+
|
|
57
|
+#define E0_STEP_PIN P0_11
|
|
58
|
+#define E0_DIR_PIN P2_13
|
|
59
|
+#define E0_ENABLE_PIN P2_12
|
|
60
|
+
|
|
61
|
+#define E1_STEP_PIN P0_01
|
|
62
|
+#define E1_DIR_PIN P0_00
|
|
63
|
+#define E1_ENABLE_PIN P0_10
|
|
64
|
+
|
|
65
|
+//
|
|
66
|
+// Temperature Sensors
|
|
67
|
+// 3.3V max when defined as an analog input
|
|
68
|
+//
|
|
69
|
+#define TEMP_BED_PIN 0 // A0 (T0) - (67) - TEMP_BED_PIN
|
|
70
|
+#define TEMP_0_PIN 1 // A1 (T1) - (68) - TEMP_0_PIN
|
|
71
|
+#define TEMP_1_PIN 2 // A2 (T2) - (69) - TEMP_1_PIN
|
|
72
|
+
|
|
73
|
+//
|
|
74
|
+// Heaters / Fans
|
|
75
|
+//
|
|
76
|
+#define HEATER_0_PIN P2_07
|
|
77
|
+#define HEATER_1_PIN P2_04
|
|
78
|
+#define FAN_PIN P2_03
|
|
79
|
+#define HEATER_BED_PIN P2_05
|
|
80
|
+
|
|
81
|
+//
|
|
82
|
+// Misc. Functions
|
|
83
|
+//
|
|
84
|
+#define SDSS P1_23 // (53)
|
|
85
|
+
|
|
86
|
+/**
|
|
87
|
+ * LCD / Controller
|
|
88
|
+ *
|
|
89
|
+ * All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
|
|
90
|
+ */
|
|
91
|
+
|
|
92
|
+/**
|
|
93
|
+ * Smart LCD adapter
|
|
94
|
+ *
|
|
95
|
+ * The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
|
|
96
|
+ * REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
|
|
97
|
+ * DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
|
|
98
|
+ * is needed to pick up 5V for the EXP1 connection.
|
|
99
|
+ *
|
|
100
|
+ * SD card on the LCD uses the same SPI signals as the LCD. This results in garbage/lines
|
|
101
|
+ * on the LCD display during accesses of the SD card. The menus/code has been arranged so
|
|
102
|
+ * that the garbage/lines are erased immediately after the SD card accesses are completed.
|
|
103
|
+ */
|
|
104
|
+
|
|
105
|
+#if ENABLED(ULTRA_LCD)
|
|
106
|
+
|
|
107
|
+ #if ENABLED(CR10_STOCKDISPLAY)
|
|
108
|
+
|
|
109
|
+ // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
|
|
110
|
+ // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
|
|
111
|
+ // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
|
|
112
|
+ // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
|
|
113
|
+
|
|
114
|
+ #define BEEPER_PIN P2_11 // J3-3 & AUX-4
|
|
115
|
+
|
|
116
|
+ #define BTN_EN1 P0_16 // J3-7 & AUX-4
|
|
117
|
+ #define BTN_EN2 P1_23 // J3-5 & AUX-4
|
|
118
|
+ #define BTN_ENC P3_25 // J3-4 & AUX-4
|
|
119
|
+
|
|
120
|
+ #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
|
|
121
|
+ #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
|
122
|
+ #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
|
|
123
|
+
|
|
124
|
+ #else
|
|
125
|
+
|
|
126
|
+ #define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
|
127
|
+
|
|
128
|
+ #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
|
129
|
+ #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
|
130
|
+ #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
|
131
|
+
|
|
132
|
+ #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
|
133
|
+ #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
|
134
|
+ #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
|
|
135
|
+ #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
|
|
136
|
+
|
|
137
|
+ #if ENABLED(REPRAPWORLD_KEYPAD)
|
|
138
|
+ #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
|
|
139
|
+ #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
|
|
140
|
+ #define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
|
141
|
+ #elif DISABLED(NEWPANEL)
|
|
142
|
+ //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
|
|
143
|
+ //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
|
|
144
|
+ //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
|
|
145
|
+ //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
|
|
146
|
+ #endif
|
|
147
|
+
|
|
148
|
+ #if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
|
149
|
+ // #define LCD_SCREEN_ROT_180
|
|
150
|
+
|
|
151
|
+ #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
|
152
|
+ #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
|
153
|
+ #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
|
154
|
+
|
|
155
|
+ #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
|
156
|
+ #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
|
157
|
+
|
|
158
|
+ #define DOGLCD_CS P0_16 // (16)
|
|
159
|
+ #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
|
160
|
+ #define DOGLCD_SCK SCK_PIN
|
|
161
|
+ #define DOGLCD_MOSI MOSI_PIN
|
|
162
|
+
|
|
163
|
+ #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
|
164
|
+ #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
|
165
|
+ #else
|
|
166
|
+ #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
|
|
167
|
+ #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
|
168
|
+ #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
|
|
169
|
+ #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
|
|
170
|
+ #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
|
|
171
|
+ #if ENABLED(ULTIPANEL)
|
|
172
|
+ #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
|
|
173
|
+ #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
|
|
174
|
+ #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
|
|
175
|
+ #endif
|
|
176
|
+ #endif
|
|
177
|
+
|
|
178
|
+ //#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
|
179
|
+ //#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
|
180
|
+ //#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
|
181
|
+ //#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 - sometimes called SDSS
|
|
182
|
+
|
|
183
|
+ #if ENABLED(MINIPANEL)
|
|
184
|
+ // GLCD features
|
|
185
|
+ //#define LCD_CONTRAST 190
|
|
186
|
+ // Uncomment screen orientation
|
|
187
|
+ //#define LCD_SCREEN_ROT_90
|
|
188
|
+ //#define LCD_SCREEN_ROT_180
|
|
189
|
+ //#define LCD_SCREEN_ROT_270
|
|
190
|
+ #endif
|
|
191
|
+
|
|
192
|
+ #endif
|
|
193
|
+
|
|
194
|
+#endif // ULTRA_LCD
|