|
@@ -98,13 +98,6 @@
|
98
|
98
|
#define E1_CS_PIN -1
|
99
|
99
|
#endif
|
100
|
100
|
|
101
|
|
-//#define E2_STEP_PIN P2_08 // (36)
|
102
|
|
-//#define E2_DIR_PIN P2_13 // (34)
|
103
|
|
-//#define E2_ENABLE_PIN P4_29 // (30)
|
104
|
|
-//#ifndef E2_CS_PIN
|
105
|
|
-// #define E2_CS_PIN -1
|
106
|
|
-//#endif
|
107
|
|
-
|
108
|
101
|
//
|
109
|
102
|
// Software SPI pins for TMC2130 stepper drivers
|
110
|
103
|
//
|
|
@@ -118,14 +111,14 @@
|
118
|
111
|
// Temperature Sensors
|
119
|
112
|
// 3.3V max when defined as an analog input
|
120
|
113
|
//
|
121
|
|
-#define TEMP_0_PIN 0 // A0 (T0) - (67) - TEMP_0_PIN
|
122
|
|
-#define TEMP_BED_PIN 1 // A1 (T1) - (68) - TEMP_BED_PIN
|
123
|
|
-#define TEMP_1_PIN 2 // A2 (T2) - (69) - TEMP_1_PIN
|
124
|
|
-#define TEMP_2_PIN 3 // A3 - (63) - J5-3 & AUX-2
|
125
|
|
-#define TEMP_3_PIN 4 // A4 - (37) - BUZZER_PIN
|
126
|
|
-//#define TEMP_4_PIN 5 // A5 - (49) - SD_DETECT_PIN
|
127
|
|
-//#define ?? 6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
|
128
|
|
-#define FILWIDTH_PIN 7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
|
114
|
+#define TEMP_0_PIN 0 // A0 (T0) - (67) - TEMP_0_PIN
|
|
115
|
+#define TEMP_BED_PIN 1 // A1 (T1) - (68) - TEMP_BED_PIN
|
|
116
|
+#define TEMP_1_PIN 2 // A2 (T2) - (69) - TEMP_1_PIN
|
|
117
|
+#define TEMP_2_PIN 3 // A3 - (63) - J5-3 & AUX-2
|
|
118
|
+#define TEMP_3_PIN 4 // A4 - (37) - BUZZER_PIN
|
|
119
|
+//#define TEMP_4_PIN 5 // A5 - (49) - SD_DETECT_PIN
|
|
120
|
+//#define ?? 6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
|
|
121
|
+#define FILWIDTH_PIN 7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
129
|
122
|
|
130
|
123
|
//
|
131
|
124
|
// Augmentation for auto-assigning RAMPS plugs
|
|
@@ -195,55 +188,57 @@
|
195
|
188
|
//
|
196
|
189
|
// Misc. Functions
|
197
|
190
|
//
|
198
|
|
-#define LED_PIN P4_28 // (13)
|
|
191
|
+#define LED_PIN P4_28 // (13)
|
199
|
192
|
|
200
|
193
|
// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
|
201
|
194
|
#ifndef FIL_RUNOUT_PIN
|
202
|
|
- #define FIL_RUNOUT_PIN P1_18 // (4)
|
|
195
|
+ #define FIL_RUNOUT_PIN P1_18 // (4)
|
203
|
196
|
#endif
|
204
|
197
|
|
205
|
|
-#define PS_ON_PIN P2_12 // (12)
|
|
198
|
+#define PS_ON_PIN P2_12 // (12)
|
206
|
199
|
|
207
|
200
|
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
|
208
|
|
- #if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // try to use servo connector
|
209
|
|
- #define CASE_LIGHT_PIN P1_18 // (4) MUST BE HARDWARE PWM
|
|
201
|
+ #if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // Try to use servo connector
|
|
202
|
+ #define CASE_LIGHT_PIN P1_18 // (4) MUST BE HARDWARE PWM
|
210
|
203
|
#endif
|
211
|
204
|
#endif
|
212
|
205
|
|
213
|
206
|
//
|
214
|
207
|
// M3/M4/M5 - Spindle/Laser Control
|
|
208
|
+// Use servo pins, if available
|
215
|
209
|
//
|
216
|
210
|
#if ENABLED(SPINDLE_LASER_ENABLE) && !PIN_EXISTS(SPINDLE_LASER_ENABLE)
|
217
|
|
- #if !defined(NUM_SERVOS) || NUM_SERVOS == 1 // must use servo connector
|
218
|
|
- #undef SERVO1
|
219
|
|
- #undef SERVO2
|
220
|
|
- #undef SERVO3
|
221
|
|
- #define SPINDLE_LASER_ENABLE_PIN P1_21 // (6) Pin should have a pullup/pulldown!
|
222
|
|
- #define SPINDLE_LASER_PWM_PIN P1_18 // (4) MUST BE HARDWARE PWM
|
223
|
|
- #define SPINDLE_DIR_PIN P1_19 // (5)
|
|
211
|
+ #if NUM_SERVOS > 1
|
|
212
|
+ #error "SPINDLE_LASER_ENABLE requires 3 free servo pins."
|
224
|
213
|
#endif
|
|
214
|
+ #define SPINDLE_LASER_ENABLE_PIN SERVO1_PIN // (6) Pin should have a pullup/pulldown!
|
|
215
|
+ #define SPINDLE_LASER_PWM_PIN SERVO3_PIN // (4) MUST BE HARDWARE PWM
|
|
216
|
+ #define SPINDLE_DIR_PIN SERVO2_PIN // (5)
|
225
|
217
|
#endif
|
226
|
218
|
|
227
|
219
|
//
|
228
|
220
|
// Průša i3 MK2 Multiplexer Support
|
229
|
221
|
//
|
230
|
222
|
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
|
231
|
|
- #define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
|
232
|
|
- #define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
|
|
223
|
+ #define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
|
|
224
|
+ #define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
|
233
|
225
|
#endif
|
234
|
226
|
#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
|
235
|
227
|
|
236
|
228
|
/**
|
237
|
229
|
* LCD / Controller
|
238
|
230
|
*
|
239
|
|
- * All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
|
|
231
|
+ * All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
|
|
232
|
+ *
|
|
233
|
+ * - https://github.com/wolfmanjm/universal-panel-adapter
|
|
234
|
+ * - http://panucattdevices.freshdesk.com/support/solutions/articles/1000243195-lcd-display-installation
|
240
|
235
|
*/
|
241
|
236
|
|
242
|
237
|
/**
|
243
|
238
|
* Smart LCD adapter
|
244
|
239
|
*
|
245
|
240
|
* The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
|
246
|
|
- * REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
|
|
241
|
+ * REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
|
247
|
242
|
* DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
|
248
|
243
|
* is needed to pick up 5V for the EXP1 connection.
|
249
|
244
|
*
|
|
@@ -252,95 +247,91 @@
|
252
|
247
|
* that the garbage/lines are erased immediately after the SD card accesses are completed.
|
253
|
248
|
*/
|
254
|
249
|
|
255
|
|
-#if ENABLED(ULTRA_LCD)
|
|
250
|
+#if ENABLED(CR10_STOCKDISPLAY)
|
256
|
251
|
|
257
|
|
- #if ENABLED(CR10_STOCKDISPLAY)
|
|
252
|
+ // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
|
|
253
|
+ // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
|
|
254
|
+ // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
|
|
255
|
+ // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
|
258
|
256
|
|
259
|
|
- // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
|
260
|
|
- // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
|
261
|
|
- // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
|
262
|
|
- // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
|
|
257
|
+ #define BEEPER_PIN P2_11 // J3-3 & AUX-4
|
263
|
258
|
|
264
|
|
- #define BEEPER_PIN P2_11 // J3-3 & AUX-4
|
|
259
|
+ #define BTN_EN1 P0_16 // J3-7 & AUX-4
|
|
260
|
+ #define BTN_EN2 P1_23 // J3-5 & AUX-4
|
|
261
|
+ #define BTN_ENC P3_25 // J3-4 & AUX-4
|
265
|
262
|
|
266
|
|
- #define BTN_EN1 P0_16 // J3-7 & AUX-4
|
267
|
|
- #define BTN_EN2 P1_23 // J3-5 & AUX-4
|
268
|
|
- #define BTN_ENC P3_25 // J3-4 & AUX-4
|
|
263
|
+ #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
|
|
264
|
+ #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
|
265
|
+ #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
|
269
|
266
|
|
270
|
|
- #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
|
271
|
|
- #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
272
|
|
- #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
|
273
|
|
-
|
274
|
|
- #else
|
|
267
|
+#elif ENABLED(ULTRA_LCD)
|
275
|
268
|
|
276
|
|
- #define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
|
269
|
+ #define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
277
|
270
|
|
278
|
|
- #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
279
|
|
- #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
280
|
|
- #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
|
271
|
+ #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
|
272
|
+ #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
|
273
|
+ #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
281
|
274
|
|
282
|
|
- #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
283
|
|
- #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
284
|
|
- #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
|
285
|
|
- #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
|
|
275
|
+ #define SD_DETECT_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
|
|
276
|
+ #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
|
277
|
+ #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
|
|
278
|
+ #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
|
286
|
279
|
|
287
|
|
- #if ENABLED(NEWPANEL)
|
288
|
|
- #if ENABLED(REPRAPWORLD_KEYPAD)
|
289
|
|
- #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
|
290
|
|
- #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
|
291
|
|
- #define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
292
|
|
- #endif
|
293
|
|
- #else
|
294
|
|
- //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
|
295
|
|
- //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
|
296
|
|
- //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
|
297
|
|
- //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
|
|
280
|
+ #if ENABLED(NEWPANEL)
|
|
281
|
+ #if ENABLED(REPRAPWORLD_KEYPAD)
|
|
282
|
+ #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
|
|
283
|
+ #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
|
|
284
|
+ #define SHIFT_LD P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
|
298
|
285
|
#endif
|
|
286
|
+ #else
|
|
287
|
+ //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
|
|
288
|
+ //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
|
|
289
|
+ //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
|
|
290
|
+ //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
|
|
291
|
+ #endif
|
299
|
292
|
|
300
|
|
- #if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
301
|
|
- // #define LCD_SCREEN_ROT_180
|
302
|
|
-
|
303
|
|
- #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
304
|
|
- #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
305
|
|
- #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
|
293
|
+ #if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
|
294
|
+ // #define LCD_SCREEN_ROT_180
|
306
|
295
|
|
307
|
|
- #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
308
|
|
- #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
|
296
|
+ #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
|
297
|
+ #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
|
298
|
+ #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
309
|
299
|
|
310
|
|
- #define DOGLCD_CS P0_16 // (16)
|
311
|
|
- #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
312
|
|
- #define DOGLCD_SCK SCK_PIN
|
313
|
|
- #define DOGLCD_MOSI MOSI_PIN
|
|
300
|
+ #define SD_DETECT_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
|
|
301
|
+ #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
314
|
302
|
|
315
|
|
- #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
316
|
|
- #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
317
|
|
- #else
|
318
|
|
- #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
|
319
|
|
- #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
320
|
|
- #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
|
321
|
|
- #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
|
322
|
|
- #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
|
323
|
|
- #if ENABLED(ULTIPANEL)
|
324
|
|
- #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
|
325
|
|
- #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
|
326
|
|
- #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
|
327
|
|
- #endif
|
328
|
|
- #endif
|
|
303
|
+ #define DOGLCD_CS P0_16 // (16)
|
|
304
|
+ #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
|
305
|
+ #define DOGLCD_SCK SCK_PIN
|
|
306
|
+ #define DOGLCD_MOSI MOSI_PIN
|
329
|
307
|
|
330
|
|
- //#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
331
|
|
- //#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
332
|
|
- //#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
333
|
|
- //#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 - sometimes called SDSS
|
334
|
|
-
|
335
|
|
- #if ENABLED(MINIPANEL)
|
336
|
|
- // GLCD features
|
337
|
|
- //#define LCD_CONTRAST 190
|
338
|
|
- // Uncomment screen orientation
|
339
|
|
- //#define LCD_SCREEN_ROT_90
|
340
|
|
- //#define LCD_SCREEN_ROT_180
|
341
|
|
- //#define LCD_SCREEN_ROT_270
|
|
308
|
+ #define STAT_LED_BLUE_PIN P0_26 //(63) may change if cable changes
|
|
309
|
+ #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
|
310
|
+ #else
|
|
311
|
+ #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
|
|
312
|
+ #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
|
313
|
+ #define LCD_BACKLIGHT_PIN P0_16 //(16) J3-7 & AUX-4 - only used on DOGLCD controllers
|
|
314
|
+ #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
|
|
315
|
+ #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
|
|
316
|
+ #if ENABLED(ULTIPANEL)
|
|
317
|
+ #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
|
|
318
|
+ #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
|
|
319
|
+ #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
|
342
|
320
|
#endif
|
|
321
|
+ #endif
|
343
|
322
|
|
|
323
|
+ //#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
|
324
|
+ //#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
|
325
|
+ //#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
|
326
|
+ //#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS)
|
|
327
|
+
|
|
328
|
+ #if ENABLED(MINIPANEL)
|
|
329
|
+ // GLCD features
|
|
330
|
+ //#define LCD_CONTRAST 190
|
|
331
|
+ // Uncomment screen orientation
|
|
332
|
+ //#define LCD_SCREEN_ROT_90
|
|
333
|
+ //#define LCD_SCREEN_ROT_180
|
|
334
|
+ //#define LCD_SCREEN_ROT_270
|
344
|
335
|
#endif
|
345
|
336
|
|
346
|
337
|
#endif // ULTRA_LCD
|
|
@@ -349,17 +340,17 @@
|
349
|
340
|
// Ethernet pins
|
350
|
341
|
//
|
351
|
342
|
#if DISABLED(ULTIPANEL)
|
352
|
|
- #define ENET_MDIO P1_17 // (71) J12-4
|
353
|
|
- #define ENET_RX_ER P1_14 // (73) J12-6
|
354
|
|
- #define ENET_RXD1 P1_10 // (75) J12-8
|
|
343
|
+ #define ENET_MDIO P1_17 // (71) J12-4
|
|
344
|
+ #define ENET_RX_ER P1_14 // (73) J12-6
|
|
345
|
+ #define ENET_RXD1 P1_10 // (75) J12-8
|
355
|
346
|
#endif
|
356
|
|
-#define ENET_MOC P1_16 // (70) J12-3
|
357
|
|
-#define REF_CLK P1_15 // (72) J12-5
|
358
|
|
-#define ENET_RXD0 P1_09 // (74) J12-7
|
359
|
|
-#define ENET_CRS P1_08 // (76) J12-9
|
360
|
|
-#define ENET_TX_EN P1_04 // (77) J12-10
|
361
|
|
-#define ENET_TXD0 P1_00 // (78) J12-11
|
362
|
|
-#define ENET_TXD1 P1_01 // (79) J12-12
|
|
347
|
+#define ENET_MOC P1_16 // (70) J12-3
|
|
348
|
+#define REF_CLK P1_15 // (72) J12-5
|
|
349
|
+#define ENET_RXD0 P1_09 // (74) J12-7
|
|
350
|
+#define ENET_CRS P1_08 // (76) J12-9
|
|
351
|
+#define ENET_TX_EN P1_04 // (77) J12-10
|
|
352
|
+#define ENET_TXD0 P1_00 // (78) J12-11
|
|
353
|
+#define ENET_TXD1 P1_01 // (79) J12-12
|
363
|
354
|
|
364
|
355
|
//#define USB_SD_DISABLED
|
365
|
356
|
#define USB_SD_ONBOARD // Provide the onboard SD card to the host as a USB mass storage device
|
|
@@ -369,11 +360,11 @@
|
369
|
360
|
|
370
|
361
|
#if ENABLED(LPC_SD_LCD)
|
371
|
362
|
|
372
|
|
- #define SCK_PIN P0_15
|
373
|
|
- #define MISO_PIN P0_17
|
374
|
|
- #define MOSI_PIN P0_18
|
375
|
|
- #define SS_PIN P1_23 // Chip select for SD card used by Marlin
|
376
|
|
- #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
363
|
+ #define SCK_PIN P0_15
|
|
364
|
+ #define MISO_PIN P0_17
|
|
365
|
+ #define MOSI_PIN P0_18
|
|
366
|
+ #define SS_PIN P1_23 // Chip select for SD card used by Marlin
|
|
367
|
+ #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
377
|
368
|
|
378
|
369
|
#elif ENABLED(LPC_SD_ONBOARD)
|
379
|
370
|
|
|
@@ -383,66 +374,51 @@
|
383
|
374
|
#define SHARED_SD_CARD
|
384
|
375
|
#undef SD_DETECT_PIN // there is also no detect pin for the onboard card
|
385
|
376
|
#endif
|
386
|
|
- #define SCK_PIN P0_07
|
387
|
|
- #define MISO_PIN P0_08
|
388
|
|
- #define MOSI_PIN P0_09
|
389
|
|
- #define SS_PIN P0_06 // Chip select for SD card used by Marlin
|
390
|
|
- #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
377
|
+
|
|
378
|
+ #define SCK_PIN P0_07
|
|
379
|
+ #define MISO_PIN P0_08
|
|
380
|
+ #define MOSI_PIN P0_09
|
|
381
|
+ #define SS_PIN P0_06 // Chip select for SD card used by Marlin
|
|
382
|
+ #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
391
|
383
|
|
392
|
384
|
#endif
|
393
|
385
|
|
394
|
386
|
/**
|
395
|
387
|
* Fast PWMs
|
396
|
388
|
*
|
397
|
|
- * The LPC1768's hardware PWM controller has 6 channels. Each channel
|
|
389
|
+ * The LPC1768's hardware PWM controller has 6 channels. Each channel
|
398
|
390
|
* can be setup to either control a dedicated pin directly or to generate
|
399
|
|
- * an interrupt. The direct method's duty cycle is accurate to within a
|
400
|
|
- * a microsecond. The interrupt method's average duty cycle has the
|
|
391
|
+ * an interrupt. The direct method's duty cycle is accurate to within a
|
|
392
|
+ * a microsecond. The interrupt method's average duty cycle has the
|
401
|
393
|
* the same accuracy but the individual cycles can vary because of higher
|
402
|
394
|
* priority interrupts.
|
403
|
395
|
*
|
404
|
396
|
* All Fast PWMs have a 50Hz rate.
|
405
|
397
|
*
|
406
|
|
- * The following pins/signals use the direct method. All other pins use the
|
|
398
|
+ * The following pins/signals use the direct method. All other pins use the
|
407
|
399
|
* the interrupt method. Note that SERVO2_PIN and RAMPS_D8_PIN use the
|
408
|
400
|
* interrupt method.
|
|
401
|
+ *
|
409
|
402
|
* P1_20 (11) SERVO0_PIN
|
410
|
403
|
* P1_21 ( 6) SERVO1_PIN J5-1
|
411
|
404
|
* P0_18 ( 4) SERVO3_PIN 5V output
|
412
|
405
|
* *P2_04 ( 9) RAMPS_D9_PIN
|
413
|
406
|
* *P2_05 (10) RAMPS_D10_PIN
|
414
|
407
|
*
|
415
|
|
- * * - If used as a heater driver then a Fast PWM is NOT assigned. If used as
|
|
408
|
+ * * - If used as a heater driver then a Fast PWM is NOT assigned. If used as
|
416
|
409
|
* a fan driver then enabling FAST_PWM_FAN assigns a Fast PWM to it.
|
417
|
410
|
*/
|
418
|
411
|
|
419
|
412
|
/**
|
420
|
413
|
* Special pins
|
421
|
|
- * P1_30 (37) - not 5V tolerant
|
422
|
|
- * P1_31 (49) - not 5V tolerant
|
423
|
|
- * P0_27 (57) - open collector
|
424
|
|
- * P0_28 (58) - open collector
|
425
|
|
- *
|
426
|
|
- */
|
|
414
|
+ * P1_30 (37) (NOT 5V tolerant)
|
|
415
|
+ * P1_31 (49) (NOT 5V tolerant)
|
|
416
|
+ * P0_27 (57) (Open collector)
|
|
417
|
+ * P0_28 (58) (Open collector)
|
|
418
|
+ */
|
427
|
419
|
|
428
|
420
|
/**
|
429
|
|
- * The following mega2560 pins are NOT available in a Re-ARM system
|
430
|
|
- * 7
|
431
|
|
- * 17
|
432
|
|
- * 22
|
433
|
|
- * 23
|
434
|
|
- * 25
|
435
|
|
- * 27
|
436
|
|
- * 29
|
437
|
|
- * 32
|
438
|
|
- * 39
|
439
|
|
- * 40
|
440
|
|
- * 42
|
441
|
|
- * 43
|
442
|
|
- * 44
|
443
|
|
- * 45
|
444
|
|
- * 47
|
445
|
|
- * 64
|
446
|
|
- * 65
|
447
|
|
- * 66
|
|
421
|
+ * The following mega2560 pins are NOT available in a Re-ARM system:
|
|
422
|
+ *
|
|
423
|
+ * 7, 17, 22, 23, 25, 27, 29, 32, 39, 40, 42, 43, 44, 45, 47, 64, 65, 66
|
448
|
424
|
*/
|