|
@@ -45,221 +45,179 @@
|
45
|
45
|
#endif /* 99 */
|
46
|
46
|
|
47
|
47
|
/****************************************************************************************
|
48
|
|
-* Arduino pin assignment
|
|
48
|
+* Gen7 v1.1, v1.2, v1.3 pin assignment
|
49
|
49
|
*
|
50
|
|
-* ATMega168
|
51
|
|
-* +-\/-+
|
52
|
|
-* PC6 1| |28 PC5 (AI 5 / D19)
|
53
|
|
-* (D 0) PD0 2| |27 PC4 (AI 4 / D18)
|
54
|
|
-* (D 1) PD1 3| |26 PC3 (AI 3 / D17)
|
55
|
|
-* (D 2) PD2 4| |25 PC2 (AI 2 / D16)
|
56
|
|
-* PWM+ (D 3) PD3 5| |24 PC1 (AI 1 / D15)
|
57
|
|
-* (D 4) PD4 6| |23 PC0 (AI 0 / D14)
|
58
|
|
-* VCC 7| |22 GND
|
59
|
|
-* GND 8| |21 AREF
|
60
|
|
-* PB6 9| |20 AVCC
|
61
|
|
-* PB7 10| |19 PB5 (D 13)
|
62
|
|
-* PWM+ (D 5) PD5 11| |18 PB4 (D 12)
|
63
|
|
-* PWM+ (D 6) PD6 12| |17 PB3 (D 11) PWM
|
64
|
|
-* (D 7) PD7 13| |16 PB2 (D 10) PWM
|
65
|
|
-* (D 8) PB0 14| |15 PB1 (D 9) PWM
|
66
|
|
-* +----+
|
67
|
50
|
****************************************************************************************/
|
68
|
|
-#if MOTHERBOARD == 0
|
69
|
|
-#define KNOWN_BOARD 1
|
70
|
51
|
|
71
|
|
-#ifndef __AVR_ATmega168__
|
72
|
|
-#error Oops! Make sure you have 'Arduino Diecimila' selected from the boards menu.
|
|
52
|
+#if MOTHERBOARD == 12
|
|
53
|
+#define MOTHERBOARD 11
|
|
54
|
+#define GEN7_V_1_3
|
73
|
55
|
#endif
|
74
|
56
|
|
75
|
|
-#define X_STEP_PIN 2
|
76
|
|
-#define X_DIR_PIN 3
|
77
|
|
-#define X_ENABLE_PIN -1
|
78
|
|
-#define X_MIN_PIN 4
|
79
|
|
-#define X_MAX_PIN 9
|
80
|
|
-
|
81
|
|
-#define Y_STEP_PIN 10
|
82
|
|
-#define Y_DIR_PIN 7
|
83
|
|
-#define Y_ENABLE_PIN -1
|
84
|
|
-#define Y_MIN_PIN 8
|
85
|
|
-#define Y_MAX_PIN 13
|
86
|
|
-
|
87
|
|
-#define Z_STEP_PIN 19
|
88
|
|
-#define Z_DIR_PIN 18
|
89
|
|
-#define Z_ENABLE_PIN 5
|
90
|
|
-#define Z_MIN_PIN 17
|
91
|
|
-#define Z_MAX_PIN 16
|
92
|
|
-
|
93
|
|
-#define E0_STEP_PIN 11
|
94
|
|
-#define E0_DIR_PIN 12
|
95
|
|
-#define E0_ENABLE_PIN -1
|
|
57
|
+#if MOTHERBOARD == 11
|
|
58
|
+#define KNOWN_BOARD
|
96
|
59
|
|
97
|
|
-#define SDPOWER -1
|
98
|
|
-#define SDSS -1
|
99
|
|
-#define LED_PIN -1
|
100
|
|
-#define FAN_PIN -1
|
101
|
|
-#define PS_ON_PIN 15
|
102
|
|
-#define KILL_PIN -1
|
|
60
|
+#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
|
|
61
|
+#error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
|
103
|
62
|
|
104
|
|
-#define HEATER_0_PIN 6
|
105
|
|
-#define HEATER_1_PIN -1
|
106
|
|
-#define HEATER_2_PIN -1
|
107
|
|
-#define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
108
|
|
-#define TEMP_1_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
109
|
|
-#define TEMP_2_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
110
|
|
-#define HEATER_BED_PIN -1
|
111
|
|
-#define TEMP_BED_PIN -1
|
112
|
63
|
#endif
|
113
|
64
|
|
|
65
|
+//x axis pins
|
|
66
|
+#define X_STEP_PIN 19
|
|
67
|
+#define X_DIR_PIN 18
|
|
68
|
+#define X_ENABLE_PIN 24
|
|
69
|
+#define X_MIN_PIN 7
|
|
70
|
+#define X_MAX_PIN -1
|
114
|
71
|
|
|
72
|
+//y axis pins
|
|
73
|
+#define Y_STEP_PIN 23
|
|
74
|
+#define Y_DIR_PIN 22
|
|
75
|
+#define Y_ENABLE_PIN 24
|
|
76
|
+#define Y_MIN_PIN 5
|
|
77
|
+#define Y_MAX_PIN -1
|
115
|
78
|
|
116
|
|
-/****************************************************************************************
|
117
|
|
-* Sanguino/RepRap Motherboard with direct-drive extruders
|
118
|
|
-*
|
119
|
|
-* ATMega644P
|
120
|
|
-*
|
121
|
|
-* +---\/---+
|
122
|
|
-* (D 0) PB0 1| |40 PA0 (AI 0 / D31)
|
123
|
|
-* (D 1) PB1 2| |39 PA1 (AI 1 / D30)
|
124
|
|
-* INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29)
|
125
|
|
-* PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28)
|
126
|
|
-* PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27)
|
127
|
|
-* MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26)
|
128
|
|
-* MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25)
|
129
|
|
-* SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24)
|
130
|
|
-* RST 9| |32 AREF
|
131
|
|
-* VCC 10| |31 GND
|
132
|
|
-* GND 11| |30 AVCC
|
133
|
|
-* XTAL2 12| |29 PC7 (D 23)
|
134
|
|
-* XTAL1 13| |28 PC6 (D 22)
|
135
|
|
-* RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
|
136
|
|
-* TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
|
137
|
|
-* INT0 RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS
|
138
|
|
-* INT1 TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK
|
139
|
|
-* PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
|
140
|
|
-* PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
|
141
|
|
-* PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
|
142
|
|
-* +--------+
|
143
|
|
-*
|
144
|
|
-****************************************************************************************/
|
145
|
|
-#if MOTHERBOARD == 1
|
146
|
|
-#define KNOWN_BOARD 1
|
147
|
|
-
|
148
|
|
-#ifndef __AVR_ATmega644P__
|
149
|
|
-#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
|
150
|
|
-#endif
|
|
79
|
+//z axis pins
|
|
80
|
+#define Z_STEP_PIN 26
|
|
81
|
+#define Z_DIR_PIN 25
|
|
82
|
+#define Z_ENABLE_PIN 24
|
|
83
|
+#define Z_MIN_PIN 1
|
|
84
|
+#define Z_MAX_PIN
|
151
|
85
|
|
152
|
|
-#define X_STEP_PIN 15
|
153
|
|
-#define X_DIR_PIN 18
|
154
|
|
-#define X_ENABLE_PIN 19
|
155
|
|
-#define X_MIN_PIN 20
|
156
|
|
-#define X_MAX_PIN 21
|
|
86
|
+//extruder pins
|
|
87
|
+#define E0_STEP_PIN 28
|
|
88
|
+#define E0_DIR_PIN 27
|
|
89
|
+#define E0_ENABLE_PIN 24
|
157
|
90
|
|
158
|
|
-#define Y_STEP_PIN 23
|
159
|
|
-#define Y_DIR_PIN 22
|
160
|
|
-#define Y_ENABLE_PIN 19
|
161
|
|
-#define Y_MIN_PIN 25
|
162
|
|
-#define Y_MAX_PIN 26
|
|
91
|
+#define TEMP_0_PIN 1
|
|
92
|
+#define TEMP_1_PIN -1
|
|
93
|
+#define TEMP_2_PIN -1
|
|
94
|
+#define TEMP_BED_PIN 2
|
163
|
95
|
|
164
|
|
-#define Z_STEP_PIN 29
|
165
|
|
-#define Z_DIR_PIN 30
|
166
|
|
-#define Z_ENABLE_PIN 31
|
167
|
|
-#define Z_MIN_PIN 2
|
168
|
|
-#define Z_MAX_PIN 1
|
|
96
|
+#define HEATER_0_PIN 4
|
|
97
|
+#define HEATER_1_PIN -1
|
|
98
|
+#define HEATER_2_PIN -1
|
|
99
|
+#define HEATER_BED_PIN 3
|
169
|
100
|
|
170
|
|
-#define E0_STEP_PIN 12
|
171
|
|
-#define E0_DIR_PIN 16
|
172
|
|
-#define E0_ENABLE_PIN 3
|
173
|
101
|
|
174
|
|
-#define SDPOWER -1
|
175
|
|
-#define SDSS -1
|
176
|
|
-#define LED_PIN 0
|
177
|
|
-#define FAN_PIN -1
|
178
|
|
-#define PS_ON_PIN -1
|
179
|
|
-#define KILL_PIN -1
|
|
102
|
+#define SDPOWER -1
|
|
103
|
+#define SDSS -1 // SCL pin of I2C header
|
|
104
|
+#define LED_PIN -1
|
180
|
105
|
|
181
|
|
-#define HEATER_0_PIN 14
|
182
|
|
-#define HEATER_1_PIN -1
|
183
|
|
-#define HEATER_2_PIN -1
|
184
|
|
-#define TEMP_0_PIN 4 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
185
|
|
-#define TEMP_1_PIN -1
|
186
|
|
-#define TEMP_2_PIN -1
|
187
|
|
-#define HEATER_BED_PIN -1
|
188
|
|
-#define TEMP_BED_PIN -1
|
189
|
|
-/* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
|
|
106
|
+#ifdef GEN7_V_1_3
|
|
107
|
+// Gen7 v1.3 removed the fan pin
|
|
108
|
+#define FAN_PIN -1
|
|
109
|
+#else
|
|
110
|
+#define FAN_PIN 31
|
|
111
|
+#endif
|
|
112
|
+#define PS_ON_PIN 15
|
190
|
113
|
|
|
114
|
+//our pin for debugging.
|
|
115
|
+#define DEBUG_PIN 0
|
191
|
116
|
|
|
117
|
+//our RS485 pins
|
|
118
|
+#define TX_ENABLE_PIN 12
|
|
119
|
+#define RX_ENABLE_PIN 13
|
192
|
120
|
|
193
|
121
|
#endif
|
194
|
122
|
|
195
|
|
-
|
196
|
|
-/****************************************************************************************
|
197
|
|
-* RepRap Motherboard ****---NOOOOOO RS485/EXTRUDER CONTROLLER!!!!!!!!!!!!!!!!!---*******
|
|
123
|
+/*******************************************************************************
|
|
124
|
+*********
|
|
125
|
+* Gen7 Alfons3 pin assignment
|
198
|
126
|
*
|
199
|
|
-****************************************************************************************/
|
200
|
|
-#if MOTHERBOARD == 2
|
201
|
|
-#define KNOWN_BOARD 1
|
|
127
|
+********************************************************************************
|
|
128
|
+********/
|
|
129
|
+/* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/
|
202
|
130
|
|
203
|
|
-#ifndef __AVR_ATmega644P__
|
204
|
|
-#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
|
205
|
|
-#endif
|
|
131
|
+#if MOTHERBOARD == 10
|
|
132
|
+#define KNOWN_BOARD
|
206
|
133
|
|
207
|
|
-#define X_STEP_PIN 15
|
208
|
|
-#define X_DIR_PIN 18
|
209
|
|
-#define X_ENABLE_PIN 19
|
210
|
|
-#define X_MIN_PIN 20
|
211
|
|
-#define X_MAX_PIN 21
|
|
134
|
+#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
|
|
135
|
+ #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
|
212
|
136
|
|
213
|
|
-#define Y_STEP_PIN 23
|
214
|
|
-#define Y_DIR_PIN 22
|
215
|
|
-#define Y_ENABLE_PIN 24
|
216
|
|
-#define Y_MIN_PIN 25
|
217
|
|
-#define Y_MAX_PIN 26
|
|
137
|
+#endif
|
218
|
138
|
|
219
|
|
-#define Z_STEP_PINN 27
|
220
|
|
-#define Z_DIR_PINN 28
|
221
|
|
-#define Z_ENABLE_PIN 29
|
222
|
|
-#define Z_MIN_PIN 30
|
223
|
|
-#define Z_MAX_PIN 31
|
|
139
|
+//x axis pins
|
|
140
|
+ #define X_STEP_PIN 21 //different from stanard GEN7
|
|
141
|
+ #define X_DIR_PIN 20 //different from stanard GEN7
|
|
142
|
+ #define X_ENABLE_PIN 24
|
|
143
|
+ #define X_MIN_PIN 0
|
|
144
|
+ #define X_MAX_PIN -1
|
224
|
145
|
|
225
|
|
-#define E0_STEP_PIN 17
|
226
|
|
-#define E0_DIR_PIN 16
|
227
|
|
-#define E0_ENABLE_PIN -1
|
|
146
|
+ //y axis pins
|
|
147
|
+ #define Y_STEP_PIN 23
|
|
148
|
+ #define Y_DIR_PIN 22
|
|
149
|
+ #define Y_ENABLE_PIN 24
|
|
150
|
+ #define Y_MIN_PIN 1
|
|
151
|
+ #define Y_MAX_PIN -1
|
228
|
152
|
|
229
|
|
-#define SDPOWER -1
|
230
|
|
-#define SDSS 4
|
231
|
|
-#define LED_PIN 0
|
|
153
|
+ //z axis pins
|
|
154
|
+ #define Z_STEP_PIN 26
|
|
155
|
+ #define Z_DIR_PIN 25
|
|
156
|
+ #define Z_ENABLE_PIN 24
|
|
157
|
+ #define Z_MIN_PIN 2
|
|
158
|
+ #define Z_MAX_PIN -1
|
232
|
159
|
|
233
|
|
-#define SD_CARD_WRITE 2
|
234
|
|
-#define SD_CARD_DETECT 3
|
235
|
|
-#define SD_CARD_SELECT 4
|
|
160
|
+ //extruder pins
|
|
161
|
+ #define E0_STEP_PIN 28
|
|
162
|
+ #define E0_DIR_PIN 27
|
|
163
|
+ #define E0_ENABLE_PIN 24
|
|
164
|
+
|
|
165
|
+ #define TEMP_0_PIN 2
|
|
166
|
+ #define TEMP_1_PIN -1
|
|
167
|
+ #define TEMP_2_PIN -1
|
|
168
|
+ #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
|
|
169
|
+
|
|
170
|
+ #define HEATER_0_PIN 4
|
|
171
|
+ #define HEATER_1_PIN -1
|
|
172
|
+ #define HEATER_2_PIN -1
|
|
173
|
+ #define HEATER_BED_PIN 3 // (bed)
|
236
|
174
|
|
237
|
|
-//our RS485 pins
|
238
|
|
-#define TX_ENABLE_PIN 12
|
239
|
|
-#define RX_ENABLE_PIN 13
|
|
175
|
+ #define SDPOWER -1
|
|
176
|
+ #define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support
|
|
177
|
+ #define LED_PIN -1
|
240
|
178
|
|
241
|
|
-//pin for controlling the PSU.
|
242
|
|
-#define PS_ON_PIN 14
|
|
179
|
+ #define FAN_PIN -1
|
|
180
|
+ #define PS_ON_PIN 19
|
|
181
|
+ //our pin for debugging.
|
243
|
182
|
|
244
|
|
-#define FAN_PIN -1
|
245
|
|
-#define KILL_PIN -1
|
|
183
|
+ #define DEBUG_PIN -1
|
246
|
184
|
|
247
|
|
-#define HEATER_0_PIN -1
|
248
|
|
-#define HEATER_1_PIN -1
|
249
|
|
-#define HEATER_2_PIN -1
|
250
|
|
-#define TEMP_0_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
|
251
|
|
-#define TEMP_1_PIN -1
|
252
|
|
-#define TEMP_2_PIN -1
|
253
|
|
-#define HEATER_BED_PIN -1
|
254
|
|
-#define TEMP_BED_PIN -1
|
|
185
|
+ //our RS485 pins
|
|
186
|
+ //#define TX_ENABLE_PIN 12
|
|
187
|
+ //#define RX_ENABLE_PIN 13
|
|
188
|
+
|
|
189
|
+ #define BEEPER -1
|
|
190
|
+ #define SDCARDDETECT -1
|
|
191
|
+ #define SUICIDE_PIN -1 //has to be defined; otherwise Power_off doesn't work
|
|
192
|
+
|
|
193
|
+ //Pins for 4bit LCD Support
|
|
194
|
+ #define LCD_PINS_RS 18
|
|
195
|
+ #define LCD_PINS_ENABLE 17
|
|
196
|
+ #define LCD_PINS_D4 16
|
|
197
|
+ #define LCD_PINS_D5 15
|
|
198
|
+ #define LCD_PINS_D6 13
|
|
199
|
+ #define LCD_PINS_D7 14
|
|
200
|
+
|
|
201
|
+ //buttons are directly attached
|
|
202
|
+ #define BTN_EN1 11
|
|
203
|
+ #define BTN_EN2 10
|
|
204
|
+ #define BTN_ENC 12 //the click
|
|
205
|
+
|
|
206
|
+ #define BLEN_C 2
|
|
207
|
+ #define BLEN_B 1
|
|
208
|
+ #define BLEN_A 0
|
255
|
209
|
|
|
210
|
+ #define encrot0 0
|
|
211
|
+ #define encrot1 2
|
|
212
|
+ #define encrot2 3
|
|
213
|
+ #define encrot3 1
|
256
|
214
|
#endif
|
257
|
215
|
|
258
|
216
|
/****************************************************************************************
|
259
|
217
|
* Arduino Mega pin assignment
|
260
|
218
|
*
|
261
|
219
|
****************************************************************************************/
|
262
|
|
-#if MOTHERBOARD == 33
|
|
220
|
+#if MOTHERBOARD == 33 || MOTHERBOARD == 34
|
263
|
221
|
#define MOTHERBOARD 3
|
264
|
222
|
#define RAMPS_V_1_3
|
265
|
223
|
#endif
|
|
@@ -295,7 +253,7 @@
|
295
|
253
|
#define Z_DIR_PIN 48
|
296
|
254
|
#define Z_ENABLE_PIN 62
|
297
|
255
|
#define Z_MIN_PIN 18
|
298
|
|
-#define Z_MAX_PIN 19 //19
|
|
256
|
+#define Z_MAX_PIN 19
|
299
|
257
|
|
300
|
258
|
#define E0_STEP_PIN 26
|
301
|
259
|
#define E0_DIR_PIN 28
|
|
@@ -308,13 +266,22 @@
|
308
|
266
|
#define SDPOWER -1
|
309
|
267
|
#define SDSS 53
|
310
|
268
|
#define LED_PIN 13
|
311
|
|
-#define FAN_PIN 9 // Uses HEATER_1 on Ramps Board
|
|
269
|
+
|
|
270
|
+#if MOTHERBOARD == 33
|
|
271
|
+#define FAN_PIN 9 // (Sprinter config)
|
|
272
|
+#else
|
|
273
|
+#define FAN_PIN 4 // IO pin. Buffer needed
|
|
274
|
+#endif
|
312
|
275
|
#define PS_ON_PIN 12
|
313
|
276
|
#define KILL_PIN -1
|
314
|
277
|
|
315
|
278
|
#define HEATER_0_PIN 10 // EXTRUDER 1
|
316
|
|
-#define HEATER_1_PIN 9 // EXTRUDER 2
|
317
|
|
-#define HEATER_2_PIN -1 // EXTRUDER 2
|
|
279
|
+#if MOTHERBOARD == 33
|
|
280
|
+#define HEATER_1_PIN -1
|
|
281
|
+#else
|
|
282
|
+#define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
|
|
283
|
+#endif
|
|
284
|
+#define HEATER_2_PIN -1
|
318
|
285
|
#define TEMP_0_PIN 13 // ANALOG NUMBERING
|
319
|
286
|
#define TEMP_1_PIN 15 // ANALOG NUMBERING
|
320
|
287
|
#define TEMP_2_PIN -1 // ANALOG NUMBERING
|
|
@@ -635,180 +602,6 @@
|
635
|
602
|
|
636
|
603
|
#endif
|
637
|
604
|
|
638
|
|
-/****************************************************************************************
|
639
|
|
-* Gen7 v1.1, v1.2, v1.3 pin assignment
|
640
|
|
-*
|
641
|
|
-****************************************************************************************/
|
642
|
|
-
|
643
|
|
-#if MOTHERBOARD == 79
|
644
|
|
-#define MOTHERBOARD 78
|
645
|
|
-#define GEN7_V_1_3
|
646
|
|
-#endif
|
647
|
|
-
|
648
|
|
-#if MOTHERBOARD == 78
|
649
|
|
-#define KNOWN_BOARD
|
650
|
|
-
|
651
|
|
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
|
652
|
|
-#error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
|
653
|
|
-
|
654
|
|
-#endif
|
655
|
|
-
|
656
|
|
-//x axis pins
|
657
|
|
-#define X_STEP_PIN 19
|
658
|
|
-#define X_DIR_PIN 18
|
659
|
|
-#define X_ENABLE_PIN 24
|
660
|
|
-#define X_MIN_PIN 7
|
661
|
|
-#define X_MAX_PIN -1
|
662
|
|
-
|
663
|
|
-//y axis pins
|
664
|
|
-#define Y_STEP_PIN 23
|
665
|
|
-#define Y_DIR_PIN 22
|
666
|
|
-#define Y_ENABLE_PIN 24
|
667
|
|
-#define Y_MIN_PIN 5
|
668
|
|
-#define Y_MAX_PIN -1
|
669
|
|
-
|
670
|
|
-//z axis pins
|
671
|
|
-#define Z_STEP_PIN 26
|
672
|
|
-#define Z_DIR_PIN 25
|
673
|
|
-#define Z_ENABLE_PIN 24
|
674
|
|
-#define Z_MIN_PIN 1
|
675
|
|
-#define Z_MAX_PIN -1
|
676
|
|
-
|
677
|
|
-//extruder pins
|
678
|
|
-#define E0_STEP_PIN 28
|
679
|
|
-#define E0_DIR_PIN 27
|
680
|
|
-#define E0_ENABLE_PIN 24
|
681
|
|
-
|
682
|
|
-#define TEMP_0_PIN 1
|
683
|
|
-#define TEMP_1_PIN -1
|
684
|
|
-#define TEMP_2_PIN -1
|
685
|
|
-#define TEMP_BED_PIN 2
|
686
|
|
-
|
687
|
|
-#define HEATER_0_PIN 4
|
688
|
|
-#define HEATER_1_PIN -1
|
689
|
|
-#define HEATER_2_PIN -1
|
690
|
|
-#define HEATER_BED_PIN 3
|
691
|
|
-
|
692
|
|
-
|
693
|
|
-#define SDPOWER -1
|
694
|
|
-#define SDSS -1 // SCL pin of I2C header
|
695
|
|
-#define LED_PIN -1
|
696
|
|
-
|
697
|
|
-#ifdef GEN7_V_1_3
|
698
|
|
-// Gen7 v1.3 removed the fan pin
|
699
|
|
-#define FAN_PIN -1
|
700
|
|
-#else
|
701
|
|
-#define FAN_PIN 31
|
702
|
|
-#endif
|
703
|
|
-#define PS_ON_PIN 15
|
704
|
|
-
|
705
|
|
-//our pin for debugging.
|
706
|
|
-#define DEBUG_PIN 0
|
707
|
|
-
|
708
|
|
-//our RS485 pins
|
709
|
|
-#define TX_ENABLE_PIN 12
|
710
|
|
-#define RX_ENABLE_PIN 13
|
711
|
|
-
|
712
|
|
-#endif
|
713
|
|
-
|
714
|
|
-/*******************************************************************************
|
715
|
|
-*********
|
716
|
|
-* Gen7 Alfons3 pin assignment
|
717
|
|
-*
|
718
|
|
-********************************************************************************
|
719
|
|
-********/
|
720
|
|
-/* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/
|
721
|
|
-
|
722
|
|
-#if MOTHERBOARD == 77
|
723
|
|
-#define KNOWN_BOARD
|
724
|
|
-
|
725
|
|
-#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
|
726
|
|
- #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
|
727
|
|
-
|
728
|
|
-#endif
|
729
|
|
-
|
730
|
|
-//x axis pins
|
731
|
|
- #define X_STEP_PIN 21 //different from stanard GEN7
|
732
|
|
- #define X_DIR_PIN 20 //different from stanard GEN7
|
733
|
|
- #define X_ENABLE_PIN 24
|
734
|
|
- #define X_MIN_PIN 0
|
735
|
|
- #define X_MAX_PIN -1
|
736
|
|
-
|
737
|
|
- //y axis pins
|
738
|
|
- #define Y_STEP_PIN 23
|
739
|
|
- #define Y_DIR_PIN 22
|
740
|
|
- #define Y_ENABLE_PIN 24
|
741
|
|
- #define Y_MIN_PIN 1
|
742
|
|
- #define Y_MAX_PIN -1
|
743
|
|
-
|
744
|
|
- //z axis pins
|
745
|
|
- #define Z_STEP_PIN 26
|
746
|
|
- #define Z_DIR_PIN 25
|
747
|
|
- #define Z_ENABLE_PIN 24
|
748
|
|
- #define Z_MIN_PIN 2
|
749
|
|
- #define Z_MAX_PIN -1
|
750
|
|
-
|
751
|
|
- //extruder pins
|
752
|
|
- #define E0_STEP_PIN 28
|
753
|
|
- #define E0_DIR_PIN 27
|
754
|
|
- #define E0_ENABLE_PIN 24
|
755
|
|
-
|
756
|
|
- #define TEMP_0_PIN 2
|
757
|
|
- #define TEMP_1_PIN -1
|
758
|
|
- #define TEMP_2_PIN -1
|
759
|
|
- #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
|
760
|
|
-
|
761
|
|
- #define HEATER_0_PIN 4
|
762
|
|
- #define HEATER_1_PIN -1
|
763
|
|
- #define HEATER_2_PIN -1
|
764
|
|
- #define HEATER_BED_PIN 3 // (bed)
|
765
|
|
-
|
766
|
|
-
|
767
|
|
-
|
768
|
|
-
|
769
|
|
- #define SDPOWER -1
|
770
|
|
- #define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support
|
771
|
|
- #define LED_PIN -1
|
772
|
|
-
|
773
|
|
- #define FAN_PIN -1
|
774
|
|
- #define PS_ON_PIN 19
|
775
|
|
- //our pin for debugging.
|
776
|
|
-
|
777
|
|
- #define DEBUG_PIN -1
|
778
|
|
-
|
779
|
|
- //our RS485 pins
|
780
|
|
- //#define TX_ENABLE_PIN 12
|
781
|
|
- //#define RX_ENABLE_PIN 13
|
782
|
|
-
|
783
|
|
- #define BEEPER -1
|
784
|
|
- #define SDCARDDETECT -1
|
785
|
|
- #define SUICIDE_PIN -1 //has to be defined; otherwise Power_off doesn't work
|
786
|
|
-
|
787
|
|
- //Pins for 4bit LCD Support
|
788
|
|
- #define LCD_PINS_RS 18
|
789
|
|
- #define LCD_PINS_ENABLE 17
|
790
|
|
- #define LCD_PINS_D4 16
|
791
|
|
- #define LCD_PINS_D5 15
|
792
|
|
- #define LCD_PINS_D6 13
|
793
|
|
- #define LCD_PINS_D7 14
|
794
|
|
-
|
795
|
|
- //buttons are directly attached
|
796
|
|
- #define BTN_EN1 11
|
797
|
|
- #define BTN_EN2 10
|
798
|
|
- #define BTN_ENC 12 //the click
|
799
|
|
-
|
800
|
|
- #define BLEN_C 2
|
801
|
|
- #define BLEN_B 1
|
802
|
|
- #define BLEN_A 0
|
803
|
|
-
|
804
|
|
-
|
805
|
|
- #define encrot0 0
|
806
|
|
- #define encrot1 2
|
807
|
|
- #define encrot2 3
|
808
|
|
- #define encrot3 1
|
809
|
|
-
|
810
|
|
-
|
811
|
|
-#endif
|
812
|
605
|
|
813
|
606
|
#if MOTHERBOARD == 7
|
814
|
607
|
#define KNOWN_BOARD
|