File tree Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 169
169
#elif MB (MKS_GEN_13 )
170
170
#include "ramps/pins_MKS_GEN_13.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280
171
171
#elif MB (MKS_GEN_L )
172
- #include "ramps/pins_MKS_GEN_L.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280
172
+ #include "ramps/pins_MKS_GEN_L.h" // ATmega2560 env:mega2560
173
173
#elif MB (KFB_2 )
174
174
#include "ramps/pins_BIQU_KFB_2.h" // ATmega2560 env:mega2560
175
175
#elif MB (ZRIB_V20 )
Original file line number Diff line number Diff line change 25
25
* MKS GEN L – Arduino Mega2560 with RAMPS v1.4 pin assignments
26
26
* Schematic: https://green-candy.osdn.jp/external/MarlinFW/board_schematics/RAMPS/MKS%20GEN%20L%20v1.0/MKS%20Gen_L%20V1.0_008%20SCH.pdf
27
27
* Origin: https://github.com/makerbase-mks/MKS-GEN_L/blob/master/hardware/MKS%20Gen_L%20V1.0_008/MKS%20Gen_L%20V1.0_008%20SCH.pdf
28
- * ATmega2560, ATmega1280
28
+ * ATmega2560
29
29
*/
30
30
31
31
#if HOTENDS > 2 || E_STEPPERS > 2
38
38
// Heaters / Fans
39
39
//
40
40
41
- #define MOSFET_A_PIN 10 // HE0
42
- #define MOSFET_B_PIN 7 // HE1 or FAN Hotend Cooling
43
- #define MOSFET_C_PIN 8 // HBED
44
- #define FAN0_PIN 9 // FAN Part Cooling
41
+ #define HEATER_BED_PIN 8 // H-BED
42
+ #define HEATER_0_PIN 10 // HE0
43
+ #if ANY (HAS_MULTI_HOTEND , HEATERS_PARALLEL )
44
+ #define HEATER_1_PIN 7 // HE1
45
+ #else
46
+ #define FAN1_PIN 7 // HE1
47
+ #endif
48
+
49
+ #define FAN0_PIN 9 // FAN
45
50
46
51
//
47
52
// CS Pins wired to avoid conflict with the LCD
Original file line number Diff line number Diff line change 231
231
#define MOSFET_D_PIN -1
232
232
#endif
233
233
234
- #define HEATER_0_PIN MOSFET_A_PIN
234
+ #ifndef HEATER_0_PIN
235
+ #define HEATER_0_PIN MOSFET_A_PIN
236
+ #endif
235
237
236
238
#if FET_ORDER_EFB // Hotend, Fan, Bed
237
239
#ifndef HEATER_BED_PIN
238
240
#define HEATER_BED_PIN MOSFET_C_PIN
239
241
#endif
240
242
#elif FET_ORDER_EEF // Hotend, Hotend, Fan
241
- #define HEATER_1_PIN MOSFET_B_PIN
243
+ #ifndef HEATER_1_PIN
244
+ #define HEATER_1_PIN MOSFET_B_PIN
245
+ #endif
242
246
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
243
- #define HEATER_1_PIN MOSFET_B_PIN
247
+ #ifndef HEATER_1_PIN
248
+ #define HEATER_1_PIN MOSFET_B_PIN
249
+ #endif
244
250
#ifndef HEATER_BED_PIN
245
251
#define HEATER_BED_PIN MOSFET_C_PIN
246
252
#endif
253
259
#define HEATER_BED_PIN MOSFET_C_PIN
254
260
#endif
255
261
#if ANY (HAS_MULTI_HOTEND , HEATERS_PARALLEL )
256
- #define HEATER_1_PIN MOSFET_D_PIN
262
+ #ifndef HEATER_1_PIN
263
+ #define HEATER_1_PIN MOSFET_D_PIN
264
+ #endif
257
265
#else
258
- #define FAN1_PIN MOSFET_D_PIN
266
+ #ifndef FAN1_PIN
267
+ #define FAN1_PIN MOSFET_D_PIN
268
+ #endif
259
269
#endif
260
270
#endif
261
271
You can’t perform that action at this time.
0 commit comments