Prusa MINI Firmware overview
pins_THE_BORG.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 STM32F7
25  #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
26 #elif HOTENDS > 3 || E_STEPPERS > 3
27  #error "The-Borg supports up to 3 hotends / E-steppers."
28 #endif
29 
30 #define BOARD_INFO_NAME "The-Borge"
31 #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
32 
33 #define E2END 0xFFF // EEPROM end address
34 
35 // Ignore temp readings during development.
36 //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
37 
38 //
39 // Limit Switches
40 //
41 #define X_MIN_PIN PE9
42 #define X_MAX_PIN PE10
43 #define Y_MIN_PIN PE7
44 #define Y_MAX_PIN PE8
45 #define Z_MIN_PIN PF15
46 #define Z_MAX_PIN PG0
47 #define E_MIN_PIN PE2
48 #define E_MAX_PIN PE3
49 
50 //
51 // Z Probe (when not Z_MIN_PIN)
52 //
53 #ifndef Z_MIN_PROBE_PIN
54  #define Z_MIN_PROBE_PIN PA4
55 #endif
56 
57 //
58 // Steppers
59 //
60 #define STEPPER_ENABLE_PIN PE0
61 
62 #define X_STEP_PIN PC6 // 96, 39 in Arduino
63 #define X_DIR_PIN PC7
64 #define X_ENABLE_PIN PC8
65 
66 
67 #define Y_STEP_PIN PD9
68 #define Y_DIR_PIN PD10
69 #define Y_ENABLE_PIN PD11
70 
71 #define Z_STEP_PIN PE15
72 #define Z_DIR_PIN PG1
73 #define Z_ENABLE_PIN PD8
74 
75 
76 #define E0_STEP_PIN PB1
77 #define E0_DIR_PIN PB2
78 #define E0_ENABLE_PIN PE11
79 
80 
81 #define E1_STEP_PIN PC4
82 #define E1_DIR_PIN PC5
83 #define E1_ENABLE_PIN PB0
84 
85 
86 #define E2_STEP_PIN PC13
87 #define E2_DIR_PIN PC14
88 #define E2_ENABLE_PIN PC15
89 
90 #define Z2_STEP_PIN PC13
91 #define Z2_DIR_PIN PC14
92 #define Z2_ENABLE_PIN PC15
93 
94 
95 #define SCK_PIN PA5
96 #define MISO_PIN PA6
97 #define MOSI_PIN PA7
98 
99 #define SPI1_SCK_PIN PA5
100 #define SPI1_MISO_PIN PA6
101 #define SPI1_MOSI_PIN PA7
102 
103 #define SPI6_SCK_PIN PG13
104 #define SPI6_MISO_PIN PG12
105 #define SPI6_MOSI_PIN PG14
106 
107 //
108 // Temperature Sensors
109 //
110 
111 #define TEMP_0_PIN PC3 // Analog Input
112 #define TEMP_1_PIN PC2 // Analog Input
113 #define TEMP_2_PIN PC1 // Analog Input
114 #define TEMP_3_PIN PC0 // Analog Input
115 
116 #define TEMP_BED_PIN PF10 // Analog Input
117 
118 #define TEMP_5_PIN PE12 // Analog Input, Probe temp
119 
120 //
121 // Heaters / Fans
122 //
123 #define HEATER_0_PIN PD15
124 #define HEATER_1_PIN PD14
125 #define HEATER_BED_PIN PF6
126 
127 #ifndef FAN_PIN
128  #define FAN_PIN PD13
129 #endif
130 #define FAN1_PIN PA0
131 #define FAN2_PIN PA1
132 
133 #define ORIG_E0_AUTO_FAN_PIN PA1 // Use this by NOT overriding E0_AUTO_FAN_PIN
134 
135 //
136 // Misc. Functions
137 //
138 
139 //#define CASE_LIGHT_PIN_CI PF13
140 //#define CASE_LIGHT_PIN_DO PF14
141 //#define NEOPIXEL_PIN PF13
142 
143 //
144 // Průša i3 MK2 Multi Material Multiplexer Support
145 //
146 
147 #define E_MUX0_PIN PG3
148 #define E_MUX1_PIN PG4
149 
150 //
151 // Servos
152 //
153 
154 #define SERVO0_PIN PE13
155 #define SERVO1_PIN PE14
156 
157 
158 #define SDSS PA8
159 #define SS_PIN PA8
160 #define LED_PIN PA2 // Alive
161 #define PS_ON_PIN PA3
162 #define KILL_PIN -1 //PD5 // EXP2-10
163 #define PWR_LOSS PG5 // Power loss / nAC_FAULT
164 
165 //
166 // MAX7219_DEBUG
167 //
168 #define MAX7219_CLK_PIN PG10 // EXP1-1
169 #define MAX7219_DIN_PIN PD7 // EXP1-3
170 #define MAX7219_LOAD_PIN PD1 // EXP1-5
171 
172 //
173 // LCD / Controller
174 //
175 //#define SD_DETECT_PIN -1 //PB6) // EXP2-4
176 #define BEEPER_PIN PG10 // EXP1-1
177 #define LCD_PINS_RS PG9 // EXP1-4
178 #define LCD_PINS_ENABLE PD7 // EXP1-3
179 #define LCD_PINS_D4 PD1 // EXP1-5
180 #define LCD_PINS_D5 PF0 // EXP1-6
181 #define LCD_PINS_D6 PD3 // EXP1-7
182 #define LCD_PINS_D7 PD4 // EXP1-8
183 #define BTN_EN1 PD6 // EXP2-5
184 #define BTN_EN2 PD0 // EXP2-3
185 #define BTN_ENC PG11 // EXP1-2