Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_BIGTREE_BTT002_V1.0.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_STM32F4
25
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
26
#elif HOTENDS > 3 || E_STEPPERS > 3
27
#error "BIGTREE SKR Pro V1.1 supports up to 3 hotends / E-steppers."
28
#endif
29
30
#define BOARD_INFO_NAME "BIGTREE Btt002 1.0"
31
32
#define SRAM_EEPROM_EMULATION
33
34
// Ignore temp readings during development.
35
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
36
37
//
38
// Servos
39
//
40
#define SERVO0_PIN PC3
41
42
//
43
// Limit Switches
44
//
45
#define X_MIN_PIN PD3
46
#define X_MAX_PIN PD3
47
#define Y_MIN_PIN PD2
48
#define Y_MAX_PIN PD2
49
#define Z_MIN_PIN PD1
50
#define Z_MAX_PIN PD1
51
52
//
53
// Z Probe must be this pins ##
54
//
55
#ifndef Z_MIN_PROBE_PIN
56
#define Z_MIN_PROBE_PIN PD1
57
#endif
58
59
//
60
// Steppers
61
//
62
#define X_STEP_PIN PA9
63
#define X_DIR_PIN PA10
64
#define X_ENABLE_PIN PA8
65
#ifndef X_CS_PIN
66
#define X_CS_PIN PE2
67
#endif
68
69
#define Y_STEP_PIN PC8
70
#define Y_DIR_PIN PC9
71
#define Y_ENABLE_PIN PC7
72
#ifndef Y_CS_PIN
73
#define Y_CS_PIN PE3
74
#endif
75
76
#define Z_STEP_PIN PD15
77
#define Z_DIR_PIN PC6
78
#define Z_ENABLE_PIN PD14
79
#ifndef Z_CS_PIN
80
#define Z_CS_PIN PE4
81
#endif
82
83
#define E0_STEP_PIN PD12
84
#define E0_DIR_PIN PD13
85
#define E0_ENABLE_PIN PD11
86
#ifndef E0_CS_PIN
87
#define E0_CS_PIN PD7
88
#endif
89
90
/*
91
//SKR_PRO_V1.1
92
#define E1_STEP_PIN PD15
93
#define E1_DIR_PIN PE7
94
#define E1_ENABLE_PIN PA3
95
#ifndef E1_CS_PIN
96
#define E1_CS_PIN PG15
97
#endif
98
99
#define E2_STEP_PIN PD13
100
#define E2_DIR_PIN PG9
101
#define E2_ENABLE_PIN PF0
102
#ifndef E2_CS_PIN
103
#define E2_CS_PIN PG12
104
#endif
105
*/
106
//
107
// Software SPI pins for TMC2130 stepper drivers
108
//
109
#if ENABLED(TMC_USE_SW_SPI)
110
#ifndef TMC_SW_MOSI
111
#define TMC_SW_MOSI PB15
112
#endif
113
#ifndef TMC_SW_MISO
114
#define TMC_SW_MISO PB14
115
#endif
116
#ifndef TMC_SW_SCK
117
#define TMC_SW_SCK PB13
118
#endif
119
#endif
120
121
#if HAS_TMC220x
122
/**
123
* TMC2208/TMC2209 stepper drivers
124
*
125
* Hardware serial communication ports.
126
* If undefined software serial is used according to the pins below
127
*/
128
//#define X_HARDWARE_SERIAL Serial1
129
//#define X2_HARDWARE_SERIAL Serial1
130
//#define Y_HARDWARE_SERIAL Serial1
131
//#define Y2_HARDWARE_SERIAL Serial1
132
//#define Z_HARDWARE_SERIAL Serial1
133
//#define Z2_HARDWARE_SERIAL Serial1
134
//#define E0_HARDWARE_SERIAL Serial1
135
//#define E1_HARDWARE_SERIAL Serial1
136
//#define E2_HARDWARE_SERIAL Serial1
137
//#define E3_HARDWARE_SERIAL Serial1
138
//#define E4_HARDWARE_SERIAL Serial1
139
140
//
141
// Software serial ##
142
//
143
#define X_SERIAL_TX_PIN PE2
144
#define X_SERIAL_RX_PIN PE2
145
146
#define Y_SERIAL_TX_PIN PE3
147
#define Y_SERIAL_RX_PIN PE3
148
149
#define Z_SERIAL_TX_PIN PE4
150
#define Z_SERIAL_RX_PIN PE4
151
152
#define E0_SERIAL_TX_PIN PD7
153
#define E0_SERIAL_RX_PIN PD7
154
155
//#define E1_SERIAL_TX_PIN PD1
156
//#define E1_SERIAL_RX_PIN PD1
157
158
//#define E2_SERIAL_TX_PIN PD6
159
//#define E2_SERIAL_RX_PIN PD6
160
#endif
161
162
//
163
// Temperature Sensors
164
//
165
#define TEMP_0_PIN PA2 // T1 <-> E0
166
#define TEMP_1_PIN PA0 // T2 <-> E1
167
//#define TEMP_2_PIN PC2 // T3 <-> E2 SKR_PRO
168
#define TEMP_BED_PIN PA1 // T0 <-> Bed
169
170
//
171
// Heaters / Fans
172
//
173
#define HEATER_0_PIN PE6 // Heater0
174
//#define HEATER_1_PIN PD14 // Heater1
175
//#define HEATER_2_PIN PB0 // Heater1
176
#define HEATER_BED_PIN PE5 // Hotbed
177
#define FAN_PIN PB9 // Fan0
178
#define FAN1_PIN PB8 // Fan1
179
//#define FAN2_PIN PE6 // Fan2
180
181
// HAL SPI pins group
182
#define SCK_PIN PA5 // SPI SCLK
183
#define MYSSEL PA4 // SPI SSEL
184
#define MISO_PIN PA6 // SPI MISO
185
#define MOSI_PIN PA7 // SPI MOSI
186
187
//
188
// Misc. Functions
189
//
190
#define SDSS PA4
191
192
/**
193
* -------------------------------------SKR_MK3-----------------------------------------------
194
* _____ _____ |
195
* PA3 | · · | GND 5V | · · | GND |
196
* NRESET | · · | PC4(SD_DET) (LCD_D7) PE13 | · · | PE12 (LCD_D6) |
197
* (MOSI)PA7 | · · | PB0(BTN_EN2) (LCD_D5) PE11 | · · | PE10 (LCD_D4) |
198
* (SD_SS)PA4 | · · | PC5(BTN_EN1) (LCD_RS) PE8 | · · | PE9 (LCD_EN) |
199
* (SCK)PA5 | · · | PA6(MISO) (BTN_ENC) PB1 | · · | PE7 (BEEPER) |
200
*  ̄ ̄  ̄ ̄ |
201
* EXP2 EXP1 |
202
* ---------------------------------------------------------------------------------------------
203
*/
204
//
205
// LCDs and Controllers
206
//
207
#if HAS_SPI_LCD
208
#define BEEPER_PIN PE7
209
#define BTN_ENC PB1
210
211
#if ENABLED(CR10_STOCKDISPLAY)
212
#define LCD_PINS_RS PE12
213
214
#define BTN_EN1 PE9
215
#define BTN_EN2 PE10
216
217
#define LCD_PINS_ENABLE PE13
218
#define LCD_PINS_D4 PE11
219
220
#else
221
222
#define LCD_PINS_RS PE8
223
224
#define BTN_EN1 PC5
225
#define BTN_EN2 PB0
226
#define SD_DETECT_PIN PC4
227
228
#define LCD_SDSS PA4
229
230
#define LCD_PINS_ENABLE PE9
231
#define LCD_PINS_D4 PE10
232
233
#if ENABLED(ULTIPANEL)
234
#define LCD_PINS_D5 PE11
235
#define LCD_PINS_D6 PE12
236
#define LCD_PINS_D7 PE13
237
#endif
238
239
#endif
240
241
// Alter timing for graphical display
242
#if HAS_GRAPHICAL_LCD
243
#ifndef ST7920_DELAY_1
244
#define ST7920_DELAY_1 DELAY_NS(96)
245
#endif
246
#ifndef ST7920_DELAY_2
247
#define ST7920_DELAY_2 DELAY_NS(48)
248
#endif
249
#ifndef ST7920_DELAY_3
250
#define ST7920_DELAY_3 DELAY_NS(600)
251
#endif
252
#endif
253
254
#endif // HAS_SPI_LCD
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
stm32
pins_BIGTREE_BTT002_V1.0.h
Generated by
1.8.16