Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_BIGTREE_SKR_V1.3.h
Go to the documentation of this file.
1
/**
2
* Marlin 3D Printer Firmware
3
* Copyright (c) 2019 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
#pragma once
23
24
#ifndef TARGET_LPC1768
25
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
26
#endif
27
28
#define BOARD_INFO_NAME "BIGTREE SKR 1.3"
29
30
// Ignore temp readings during development.
31
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
32
33
//
34
// Servos
35
//
36
#ifndef SERVO0_PIN
37
#define SERVO0_PIN P2_00
38
#endif
39
40
//
41
// Limit Switches
42
//
43
#define X_MIN_PIN P1_29
44
#define X_MAX_PIN P1_28
45
#define Y_MIN_PIN P1_27
46
#define Y_MAX_PIN P1_26
47
#define Z_MIN_PIN P1_25
48
#define Z_MAX_PIN P1_24
49
50
//
51
// Z Probe (when not Z_MIN_PIN)
52
//
53
#ifndef Z_MIN_PROBE_PIN
54
#define Z_MIN_PROBE_PIN P1_24
55
#endif
56
57
//
58
// Filament Runout Sensor
59
//
60
#ifndef FIL_RUNOUT_PIN
61
#define FIL_RUNOUT_PIN P1_28
62
#endif
63
64
//
65
// Steppers
66
//
67
#define X_STEP_PIN P2_02
68
#define X_DIR_PIN P2_06
69
#define X_ENABLE_PIN P2_01
70
#ifndef X_CS_PIN
71
#define X_CS_PIN P1_17
72
#endif
73
74
#define Y_STEP_PIN P0_19
75
#define Y_DIR_PIN P0_20
76
#define Y_ENABLE_PIN P2_08
77
#ifndef Y_CS_PIN
78
#define Y_CS_PIN P1_15
79
#endif
80
81
#define Z_STEP_PIN P0_22
82
#define Z_DIR_PIN P2_11
83
#define Z_ENABLE_PIN P0_21
84
#ifndef Z_CS_PIN
85
#define Z_CS_PIN P1_10
86
#endif
87
88
#define E0_STEP_PIN P2_13
89
#define E0_DIR_PIN P0_11
90
#define E0_ENABLE_PIN P2_12
91
#ifndef E0_CS_PIN
92
#define E0_CS_PIN P1_08
93
#endif
94
95
#define E1_STEP_PIN P0_01
96
#define E1_DIR_PIN P0_00
97
#define E1_ENABLE_PIN P0_10
98
#ifndef E1_CS_PIN
99
#define E1_CS_PIN P1_01
100
#endif
101
102
//
103
// Software SPI pins for TMC2130 stepper drivers
104
//
105
#if ENABLED(TMC_USE_SW_SPI)
106
#ifndef TMC_SW_MOSI
107
#define TMC_SW_MOSI P4_28
108
#endif
109
#ifndef TMC_SW_MISO
110
#define TMC_SW_MISO P0_05
111
#endif
112
#ifndef TMC_SW_SCK
113
#define TMC_SW_SCK P0_04
114
#endif
115
#endif
116
117
#if HAS_TMC220x
118
/**
119
* TMC2208/TMC2209 stepper drivers
120
*
121
* Hardware serial communication ports.
122
* If undefined software serial is used according to the pins below
123
*/
124
//#define X_HARDWARE_SERIAL Serial
125
//#define X2_HARDWARE_SERIAL Serial1
126
//#define Y_HARDWARE_SERIAL Serial1
127
//#define Y2_HARDWARE_SERIAL Serial1
128
//#define Z_HARDWARE_SERIAL Serial1
129
//#define Z2_HARDWARE_SERIAL Serial1
130
//#define E0_HARDWARE_SERIAL Serial1
131
//#define E1_HARDWARE_SERIAL Serial1
132
//#define E2_HARDWARE_SERIAL Serial1
133
//#define E3_HARDWARE_SERIAL Serial1
134
//#define E4_HARDWARE_SERIAL Serial1
135
136
//
137
// Software serial
138
//
139
#define X_SERIAL_TX_PIN P4_29
140
#define X_SERIAL_RX_PIN P1_17
141
142
#define Y_SERIAL_TX_PIN P1_16
143
#define Y_SERIAL_RX_PIN P1_15
144
145
#define Z_SERIAL_TX_PIN P1_14
146
#define Z_SERIAL_RX_PIN P1_10
147
148
#define E0_SERIAL_TX_PIN P1_09
149
#define E0_SERIAL_RX_PIN P1_08
150
151
#define E1_SERIAL_TX_PIN P1_04
152
#define E1_SERIAL_RX_PIN P1_01
153
154
#define Z2_SERIAL_TX_PIN P1_04
155
#define Z2_SERIAL_RX_PIN P1_01
156
157
#endif
158
159
//
160
// Temperature Sensors
161
// 3.3V max when defined as an analog input
162
//
163
#define TEMP_BED_PIN 0 // A0 (T0) - (67) - TEMP_BED_PIN
164
#define TEMP_0_PIN 1 // A1 (T1) - (68) - TEMP_0_PIN
165
#define TEMP_1_PIN 2 // A2 (T2) - (69) - TEMP_1_PIN
166
167
//
168
// Heaters / Fans
169
//
170
#ifndef HEATER_0_PIN
171
#define HEATER_0_PIN P2_07
172
#endif
173
#if HOTENDS == 1
174
#ifndef FAN1_PIN
175
#define FAN1_PIN P2_04
176
#endif
177
#else
178
#ifndef HEATER_1_PIN
179
#define HEATER_1_PIN P2_04
180
#endif
181
#endif
182
#ifndef FAN_PIN
183
#define FAN_PIN P2_03
184
#endif
185
#ifndef HEATER_BED_PIN
186
#define HEATER_BED_PIN P2_05
187
#endif
188
189
/**
190
* _____ _____
191
* NC | · · | GND 5V | · · | GND
192
* RESET | · · | 1.31(SD_DETECT) (LCD_D7) 1.23 | · · | 1.22 (LCD_D6)
193
* (MOSI)0.18 | · · | 3.25(BTN_EN2) (LCD_D5) 1.21 | · · | 1.20 (LCD_D4)
194
* (SD_SS)0.16 | · · | 3.26(BTN_EN1) (LCD_RS) 1.19 | · · | 1.18 (LCD_EN)
195
* (SCK)0.15 | · · | 0.17(MISO) (BTN_ENC) 0.28 | · · | 1.30 (BEEPER)
196
* ----- -----
197
* EXP2 EXP1
198
*/
199
#if HAS_SPI_LCD
200
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
201
#define BTN_ENC P0_28 // (58) open-drain
202
203
#if ENABLED(CR10_STOCKDISPLAY)
204
#define LCD_PINS_RS P1_22
205
206
#define BTN_EN1 P1_18
207
#define BTN_EN2 P1_20
208
209
#define LCD_PINS_ENABLE P1_23
210
#define LCD_PINS_D4 P1_21
211
212
#else
213
#define LCD_PINS_RS P1_19
214
215
#define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
216
#define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
217
218
#define LCD_PINS_ENABLE P1_18
219
#define LCD_PINS_D4 P1_20
220
221
#define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
222
#define SD_DETECT_PIN P1_31 // (49) (NOT 5V tolerant)
223
224
#if ENABLED(FYSETC_MINI_12864)
225
#define DOGLCD_CS P1_18
226
#define DOGLCD_A0 P1_19
227
#define DOGLCD_SCK P0_15
228
#define DOGLCD_MOSI P0_18
229
#define FORCE_SOFT_SPI
230
231
#define LCD_BACKLIGHT_PIN -1
232
233
#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
234
// results in LCD soft SPI mode 3, SD soft SPI mode 0
235
236
#define LCD_RESET_PIN P1_20 // Must be high or open for LCD to operate normally.
237
238
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
239
#ifndef RGB_LED_R_PIN
240
#define RGB_LED_R_PIN P1_21
241
#endif
242
#ifndef RGB_LED_G_PIN
243
#define RGB_LED_G_PIN P1_22
244
#endif
245
#ifndef RGB_LED_B_PIN
246
#define RGB_LED_B_PIN P1_23
247
#endif
248
#elif ENABLED(FYSETC_MINI_12864_2_1)
249
#define NEOPIXEL_PIN P1_21
250
#endif
251
252
#else // !FYSETC_MINI_12864
253
254
#if ENABLED(MKS_MINI_12864)
255
#define DOGLCD_CS P1_21
256
#define DOGLCD_A0 P1_22
257
#endif
258
259
#if ENABLED(ULTIPANEL)
260
#define LCD_PINS_D5 P1_21
261
#define LCD_PINS_D6 P1_22
262
#define LCD_PINS_D7 P1_23
263
#endif
264
265
#endif // !FYSETC_MINI_12864
266
267
#endif
268
269
#endif // HAS_SPI_LCD
270
271
//
272
// SD Support
273
//
274
275
#ifndef SDCARD_CONNECTION
276
#define SDCARD_CONNECTION LCD
277
#endif
278
279
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
280
281
#if SD_CONNECTION_IS(LCD)
282
#define SCK_PIN P0_15
283
#define MISO_PIN P0_17
284
#define MOSI_PIN P0_18
285
#define SS_PIN P0_16
286
#elif SD_CONNECTION_IS(ONBOARD)
287
#undef SD_DETECT_PIN
288
#define SD_DETECT_PIN P0_27
289
#define SCK_PIN P0_07
290
#define MISO_PIN P0_08
291
#define MOSI_PIN P0_09
292
#define SS_PIN ONBOARD_SD_CS_PIN
293
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
294
#error "No custom SD drive cable defined for this board."
295
#endif
296
297
/**
298
* Special pins
299
* P1_30 (37) (NOT 5V tolerant)
300
* P1_31 (49) (NOT 5V tolerant)
301
* P0_27 (57) (Open collector)
302
* P0_28 (58) (Open collector)
303
*/
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
lpc1768
pins_BIGTREE_SKR_V1.3.h
Generated by
1.8.16