|
@@ -1,188 +0,0 @@
|
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
|
|
- * Formbot pin assignments
|
25
|
|
- */
|
26
|
|
-
|
27
|
|
-#ifndef __AVR_ATmega2560__
|
28
|
|
- #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
|
29
|
|
-#endif
|
30
|
|
-
|
31
|
|
-#if E_STEPPERS > 3 || HOTENDS > 3
|
32
|
|
- #error "Formbot supports up to 3 hotends / E-steppers. Comment this line to keep going."
|
33
|
|
-#endif
|
34
|
|
-
|
35
|
|
-#define DEFAULT_MACHINE_NAME "Formbot"
|
36
|
|
-#define BOARD_NAME "Formbot"
|
37
|
|
-
|
38
|
|
-//
|
39
|
|
-// Servos
|
40
|
|
-//
|
41
|
|
-#define SERVO0_PIN 11
|
42
|
|
-#define SERVO1_PIN 6
|
43
|
|
-#define SERVO2_PIN 5
|
44
|
|
-#define SERVO3_PIN -1
|
45
|
|
-
|
46
|
|
-//
|
47
|
|
-// Limit Switches
|
48
|
|
-//
|
49
|
|
-#define X_MIN_PIN 3
|
50
|
|
-#ifndef X_MAX_PIN
|
51
|
|
- #define X_MAX_PIN 2
|
52
|
|
-#endif
|
53
|
|
-#define Y_MIN_PIN 14
|
54
|
|
-#define Y_MAX_PIN 15
|
55
|
|
-#define Z_MIN_PIN 18
|
56
|
|
-#define Z_MAX_PIN 19
|
57
|
|
-
|
58
|
|
-//
|
59
|
|
-// Z Probe (when not Z_MIN_PIN)
|
60
|
|
-//
|
61
|
|
-#ifndef Z_MIN_PROBE_PIN
|
62
|
|
- #define Z_MIN_PROBE_PIN 32
|
63
|
|
-#endif
|
64
|
|
-
|
65
|
|
-//
|
66
|
|
-// Steppers
|
67
|
|
-//
|
68
|
|
-#define X_STEP_PIN 54
|
69
|
|
-#define X_DIR_PIN 55
|
70
|
|
-#define X_ENABLE_PIN 38
|
71
|
|
-#ifndef X_CS_PIN
|
72
|
|
- #define X_CS_PIN 53
|
73
|
|
-#endif
|
74
|
|
-
|
75
|
|
-#define Y_STEP_PIN 60
|
76
|
|
-#define Y_DIR_PIN 61
|
77
|
|
-#define Y_ENABLE_PIN 56
|
78
|
|
-#ifndef Y_CS_PIN
|
79
|
|
- #define Y_CS_PIN 49
|
80
|
|
-#endif
|
81
|
|
-
|
82
|
|
-#define Z_STEP_PIN 46
|
83
|
|
-#define Z_DIR_PIN 48
|
84
|
|
-#define Z_ENABLE_PIN 62
|
85
|
|
-#ifndef Z_CS_PIN
|
86
|
|
- #define Z_CS_PIN 40
|
87
|
|
-#endif
|
88
|
|
-
|
89
|
|
-#define E0_STEP_PIN 26
|
90
|
|
-#define E0_DIR_PIN 28
|
91
|
|
-#define E0_ENABLE_PIN 24
|
92
|
|
-#ifndef E0_CS_PIN
|
93
|
|
- #define E0_CS_PIN 42
|
94
|
|
-#endif
|
95
|
|
-
|
96
|
|
-#define E1_STEP_PIN 36
|
97
|
|
-#define E1_DIR_PIN 34
|
98
|
|
-#define E1_ENABLE_PIN 30
|
99
|
|
-#ifndef E1_CS_PIN
|
100
|
|
- #define E1_CS_PIN 44
|
101
|
|
-#endif
|
102
|
|
-
|
103
|
|
-#define E2_STEP_PIN 42
|
104
|
|
-#define E2_DIR_PIN 43
|
105
|
|
-#define E2_ENABLE_PIN 44
|
106
|
|
-
|
107
|
|
-//
|
108
|
|
-// Temperature Sensors
|
109
|
|
-//
|
110
|
|
-#define TEMP_0_PIN 13 // Analog Input
|
111
|
|
-#define TEMP_1_PIN 15 // Analog Input
|
112
|
|
-#define TEMP_BED_PIN 3 // Analog Input
|
113
|
|
-
|
114
|
|
-// SPI for Max6675 or Max31855 Thermocouple
|
115
|
|
-#if DISABLED(SDSUPPORT)
|
116
|
|
- #define MAX6675_SS 66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
|
117
|
|
-#else
|
118
|
|
- #define MAX6675_SS 66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
|
119
|
|
-#endif
|
120
|
|
-
|
121
|
|
-//
|
122
|
|
-// Augmentation for auto-assigning RAMPS plugs
|
123
|
|
-//
|
124
|
|
-#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
125
|
|
- #if HOTENDS > 1
|
126
|
|
- #if TEMP_SENSOR_BED
|
127
|
|
- #define IS_RAMPS_EEB
|
128
|
|
- #else
|
129
|
|
- #define IS_RAMPS_EEF
|
130
|
|
- #endif
|
131
|
|
- #elif TEMP_SENSOR_BED
|
132
|
|
- #define IS_RAMPS_EFB
|
133
|
|
- #else
|
134
|
|
- #define IS_RAMPS_EFF
|
135
|
|
- #endif
|
136
|
|
-#endif
|
137
|
|
-
|
138
|
|
-//
|
139
|
|
-// Heaters / Fans
|
140
|
|
-//
|
141
|
|
-#define HEATER_0_PIN 10
|
142
|
|
-#define HEATER_1_PIN 7
|
143
|
|
-#define HEATER_BED_PIN 58
|
144
|
|
-
|
145
|
|
-#define LED4_PIN 8
|
146
|
|
-
|
147
|
|
-#define FAN_PIN 9
|
148
|
|
-
|
149
|
|
-#if DISABLED(FILAMENT_RUNOUT_SENSOR)
|
150
|
|
- #define FAN1_PIN 4
|
151
|
|
-#endif
|
152
|
|
-
|
153
|
|
-//
|
154
|
|
-// Misc. Functions
|
155
|
|
-//
|
156
|
|
-#define SDSS 53
|
157
|
|
-#ifndef ROXYs_TRex
|
158
|
|
- #define LED_PIN 13
|
159
|
|
-#endif
|
160
|
|
-
|
161
|
|
-// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
|
162
|
|
-#define FILWIDTH_PIN 5 // Analog Input
|
163
|
|
-
|
164
|
|
-#ifndef PS_ON_PIN
|
165
|
|
- #define PS_ON_PIN 12
|
166
|
|
-#endif
|
167
|
|
-
|
168
|
|
-//
|
169
|
|
-// LCD / Controller
|
170
|
|
-//
|
171
|
|
-// Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
|
172
|
|
-//
|
173
|
|
-#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
174
|
|
- #define LCD_PINS_RS 16
|
175
|
|
- #define LCD_PINS_ENABLE 17
|
176
|
|
- #define LCD_PINS_D4 23
|
177
|
|
- #define LCD_PINS_D5 25
|
178
|
|
- #define LCD_PINS_D6 27
|
179
|
|
- #define LCD_PINS_D7 29
|
180
|
|
- #define BTN_EN1 31
|
181
|
|
- #define BTN_EN2 33
|
182
|
|
- #define BTN_ENC 35
|
183
|
|
- #define SD_DETECT_PIN 49
|
184
|
|
- #ifndef ROXYs_TRex
|
185
|
|
- #define KILL_PIN 41
|
186
|
|
- #define BEEPER_PIN 37
|
187
|
|
- #endif
|
188
|
|
-#endif
|